laravel JWT encode code example
Example 1: laravel jwt
composer require tymon/jwt-auth
Example 2: laravel jwt
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"
Example 3: laravel jwt
'providers' => [
...
Tymon\JWTAuth\Providers\LaravelServiceProvider::class,
]