Rapidly build an API with Laravel and JWT authentication.
geoffselby/laravel-jwt-boilerplate is a Laravel package for rapidly build an api with laravel and jwt authentication..
It currently has 18 GitHub stars and 21 downloads on Packagist (latest version v1.0.0).
Install it with composer require geoffselby/laravel-jwt-boilerplate.
Discover more Laravel packages by geoffselby
or browse all Laravel packages to compare alternatives.
Last updated
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.