Contains some examples of using Laravel Passport.
Uses authentication via passport personal tokens API.
- Laravel v12.x
- PHP v8.3.x
- PostgreSQL v16.x
- Stable version of Docker
- Compatible version of Docker Compose
cd [PATH TO PROJECT]
docker compose up -d --build
docker compose exec php bash
chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache /var/www/storage/logs
chmod -R 775 /var/www/storage /var/www/bootstrap/cache /var/www/storage/logs
composer setup
docker compose up -d
php artisan passport:keys
php artisan passport:client --personal