Skip to content

samironbarai/lumen-rest-api-passport-auth

Repository files navigation

Develop REST API with Lumen and PASSPORT authentication

Installation

  1. Clone this repo
git clone https://github.com/samironbarai/lumen-rest-api-passport-auth.git
  1. Install composer packages
cd lumen-rest-api-passport-auth
$ composer install
  1. 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
  1. Migrate and insert records
$ php artisan migrate
  1. 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.

Lumen REST API Crash Course 2021 (Passport and JWT authentication)

Please visit my website. samironbarai.com

About

Develop REST API with Lumen and PASSPORT authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published