selahattinunlu / laravel-api-query-builder

Laravel & Lumen Api Query Builder Package
332 stars 66 forks source link

Change default limit, orderBy and excludedParameters parameters in Lumen #17

Closed mdafzal closed 7 years ago

mdafzal commented 7 years ago

Can you please throw some light on how to change default limit, orderBy and excludedParameters parameters in Lumen ?

robsontenorio commented 7 years ago

@mdafzal Have you tried this?

https://github.com/selahattinunlu/laravel-api-query-builder/wiki/9.-How-do-exclude-parameters-from-queries%3F

selahattinunlu commented 7 years ago

@robsontenorio is right! @mdafzal Did it fix? can you please inform me?

mdafzal commented 7 years ago

Thanks @robsontenorio @selahattinunlu

Fixed it! I am using Lumen 5.2.9 and had to make following changes

1) Create config directory in the root of project and add file api-query-builder.php with configuration options

2) Add this line $app->configure( 'api-query-builder' ) to bootstrap/app.php

selahattinunlu commented 7 years ago

Great! @mdafzal :)