Lumen API Boilerplate is a ready-to-use "starting pack" that you can use to build your first API in seconds. It is built off Lumen 5.2
It also benefits from three pacakages:
- JWT-Auth - tymondesigns/jwt-auth
- Dingo API - dingo/api
With a similar foundation is really easy to get up and running in no time. I just made an "integration" work, adding here and there something that I found useful.
- git clone the repository;
- composer install;
Done!
Every time you create a new project starting from this repository, the php artisan jwt:generate command will be executed.
As I already told before, this boilerplate is based on dingo/api and tymondesigns/jwt-auth packages. So, you can find many informations about configuration here and here.
If you want to enable CORS for a specific route or routes group, you just have to use the cors middleware on them.
Thanks to the barryvdh/laravel-cors package, you can handle CORS easily. Just check the docs at this page for more info.
I currently made this project for personal purposes. I decided to share it here to help anyone with the same needs. If you have any feedback to improve it, feel free to make a suggestion, or open a PR!