This project is built using
Laravel skeleton for a project:
- Laravel 5.7
- Laravel passport with oauth2 implicit configuration
- Charon resource transformer
composer create-project catlabinteractive/laravel-charon api
- Copy
.env.example
to.env
- Make sure to set APP_URL in your .env file before you continue, this will make sure the swagger oauth2 client is setup correctly. Also set your database credentials etc
- Run
php artisan key:generate
- Run
php artisan migrate
- Run
php artisan passport:keys
to get api access tokens.
Navigate to your-project/docs to load the swagger documentation.