Laravel Passport API this is an example of using laravel/passport to authenticate users and issue tokens installation $ cp .env.example .env // add your db credential to .env $ composer install $ php artisan key:generate $ php artisan migrate $ php artisan passport:install