This is the sample for API of Laravel using Passport Auth validation.
Install this project to your machine:
composer installCreate database named passport, and settings for your DB:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=passport
DB_USERNAME=root
DB_PASSWORD=Hh1107030Now setup database configuration for your project:
php artisan migrateFor Postman help you can download sample API from \postman\Passport.postman_collection
If you are new in laravel then for initial Laravel set up, please follow this link.
For detail documentation of Passport please visit this link.
The Laravel framework is open-sourced software licensed under the MIT license.