Basic sample code for Laravel/Passport to authenticate users via API
Installation
cp .env.example .env
# Set database connection in .env
composer install
php artisan key:generate
php artisan migrate
php artisan passport:install
php artisan serve
# http://localhost:8000