kun391/larest-starter-kit

The boilerplate to build the RESTful api application.

0.1.0 2019-04-14 08:08 UTC

README

Build Status StyleCI

Requirement

PHP >=7.0
MYSQL >=5.6

INSTALL

  • Please make sure your packages is latest
$ composer install
$ php -r "file_exists('.env') || copy('.env.example', '.env');"
$ php artisan key:generate
$ php artisan migrate --seed
$ php artisan serve --host=0.0.0.0 --port=9000

Admin user

Request life-cycle

  • It run from 1 to 8
1. routes/api
2. app/Http/Requests
3. app/Http/Controllers
4. app/Repositories/Eloquent
5. app/Presenters
6. app/Transformers
7. app/Http/Controllers
8. response