Project setup Install all vendor dependencies composer install Install the JWT secret in the .env file php artisan jwt:secret Connect laravel to a database I recommend using docker with either laravel sails or laradock. Install migrations and seed the table of users php artisan migrate:fresh --seed Test Run php artisan test to run the integration tests of JWT.