Laravel 5.8 with Laravel Passport
-
Clone this repo
-
Create Database to MySql
-
Go to Project directory run (composer install)
-
Copy .env.example to .env (cp .env.example .env)
-
Run (php artisan key:generate)
-
open .env file then add your database name and database credentials then save
-
Run (php artisan config:cache)
-
Run (php artisan migrate)
-
then run (php artisan passport:install) then copy the second client secret
-
copy this line of code below then paste it to the bottom of the .env file then add your ENDPOINT and CLIENT_SECRET PASSPORT_LOGIN_ENDPOINT="http://example.test/oauth/token"
PASSPORT_CLIENT_ID=2
PASSPORT_CLIENT_SECRET="example laravel passport client"
-
Save .env file
-
Then run (php artisan config:cache)