https://github.com/samironbarai/laravel-passport-auth.git
$ cd laravel-passport-auth
$ composer install
make a copy of .env.example and rename to .env
$ copy .env.example .env
$ php artisan key:generate
put database credentials in .env file
$ php artisan migrate
$ php artisan tinker
$ factory(App\User::class, 10)->create();
$ factory(App\Post::class, 100)->create();
$ exit
$ php artisan passport:install
put passport client login endpoint, id and secret in .env file
PASSPORT_LOGIN_ENDPOINT=""
PASSPORT_CLIENT_ID=
PASSPORT_CLIENT_SECRET=""
Click on the image bellow to see YouTube video.
Please visit my website. samironbarai.com