Part I - Adding JWT package in your Laravel Application
Part II - Developing APIs using JWT package
Install JWT package via composer
composer require tymon/jwt-auth
Publish the config
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"
Generate secret key
php artisan jwt:secret
Configure Auth guard inside the config/auth.php
Update your User model
You can find the entire code here at https://github.com/csinghdev/laravel-...
To know more follow the documentation here at https://jwt-auth.readthedocs.io/en/de...
JWT package: https://github.com/tymondesigns/jwt-auth
#Laravel #LaravelTutorial #LaravelTutorialForBeginners