Rapidly build an API with Laravel and JWT authentication.
MIT License
This boilerplate is meant to be used to rapidly build an API with Laravel using JWT authentication.
Features inlude:
First, run composer create-project geoffselby/laravel-jwt-boilerplate
Then, have a 🍺 and wait for composer to do it's thing.
Once you have installed the boilerplate with Composer, set up your database in .env
and run the php artisan migrate
command to migrate the database. The JWT secret is generated automatically when you install the boilerplate with Composer.
Develop your API the same way you would normally develop a Laravel powered API with JWT authentication implemented out of the box.
This boilerplate is designed so that you can use whatever frontend implementation you choose (i.e. Create React App or Vue CLI) as long as you implement authentication correctly.
Create React App example: Coming Soon
By default, CORS is enabled for all routes since it is assumed you are using a seperate front end.
Check the Laravel-CORS docs for more info.
If you would like to contribute to this project, submit a PR for review. A more detailed contribution guide is in the works.
This project is open-sourced software licensed under the MIT license.