A boilerplate to develop secured and conventional API on top of Laravel 5.6.
Dependencies:
- PHP >= 7.1.0
- Laravel 5.6
- JWT Auth 1.0.* Package
- Dingo Api Package
git clone https://github.com/mystroken/laravel-api-boilerplate.git destination_folder
composer install
cp .env.example .env
php artisan key:generate
php artisan jwt:secret
Set a correct configuration
config/api.php
config/jwt.php
After installing:
- Delete .git folder:
cd destination_folder && rm -rf .git/
- Write Tests
- Add route
- Create Model
- Create Resource
- Create Repository
- Create Controller
- Create Request (Validations)