ApiUtils (Laravel 5 Package)
, (*1)
In order to install Laravel 5 ApiUtils, just add, (*2)
"beautycoding/apiutils": "dev-master"
to your composer.json. Then run composer install
or composer update
,, (*3)
or just type in terminal:, (*4)
composer require beautycoding/apiutils
, (*5)
Then in your config/app.php
add, (*6)
BeautyCoding\ApiUtils\Providers\ApiUtilsServiceProvider::class,
Publish config:, (*7)
php artisan vendor:publish
Edit config file config/apiutils.php
to set default response type.
You can write and set own class, (*8)