laravel 7 api tutorial with jwt code example Example 1: laravel jwt composer require tymon/jwt-auth Example 2: jwt laravel php artisan jwt:secret