-
Notifications
You must be signed in to change notification settings - Fork 66
Installation
Selahattin edited this page Feb 24, 2016
·
9 revisions
Firstly, edit your composer.json file:
"require": {
"unlu/laravel-api-query-builder": "~1.0"
}
Then, run this command on the terminal
composer update
Add this line into config/app.php file's providers
'Unlu\Laravel\Api\ApiQueryBuilderServiceProvider',
Add these lines into bootstrap/app.php
$app->withFacades();
$app->withEloquent();
$app->register(Unlu\Laravel\Api\LumenServiceProvider::class);
If you use Lumen please skip this step
If you want to change default limit, orderBy and excludedParameters parameters, run this command on the terminal:
php artisan vendor:publish --provider="Unlu\Laravel\Api\ApiQueryBuilderServiceProvider"