- Clone this repo
git clone https://github.com/samironbarai/lumen-rest-api-passport-auth.git
- Install composer packages
cd lumen-rest-api-passport-auth
$ composer install
- Create and setup .env file
make a copy of .env.example
$ copy .env.example .env
$ php artisan key:generate
put database credentials in .env file
- Migrate and insert records
$ php artisan migrate
- Passport install and setup
$ php artisan passport:install
Put these keys and values in .env file
PASSPORT_LOGIN_ENDPOINT=
PASSPORT_CLIENT_ID=
PASSPORT_CLIENT_SECRET=
To test application follow the tutorial bellow. Click on the image bellow to see YouTube video.
Please visit my website. samironbarai.com