vanushwashere / laravel-api-boilerplate-starter
A version of francescomalatesta/laravel-api-boilerplate-jwt but without jwt
Requires
- php: >=5.6.4
- barryvdh/laravel-cors: ^0.8.2
- dingo/api: 1.0.x@dev
- laravel/framework: 5.4.*
Requires (Dev)
- fzaninotto/faker: ~1.4
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~5.7
- symfony/css-selector: 3.1.*
- symfony/dom-crawler: 3.1.*
README
Laravel API Boilerplate is a "starter kit" you can use to build your first API in seconds. As you can easily imagine, it is built on top of the awesome Laravel Framework. This version is built on Laravel 5.4! Just for test. It is built on top of two big guys:
- Dingo API - dingo/api
- Laravel-CORS barryvdh/laravel-cors
What I made is an integration of these three packages and a setup of some authentication and credentials recovery methods.
Installation
- run
composer create-project francescomalatesta/laravel-api-boilerplate-jwt myNextProject
; - have a coffee, nothing to do here;
Once the project creation procedure will be completed, run the php artisan migrate
command to install the required tables.
Cross Origin Resource Sharing
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.
Feedback
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!