bruno
bruno copied to clipboard
A base API controller for Laravel that gives sorting, filtering, eager loading and pagination for your resources
Reuse of custom filter within the same query will result in redundant joins. To resolve this, we cache a list of joins and skip redundant ones. Closes #43
` "message": "Call to undefined method Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany::getQualifiedRelatedKeyName()", "exception": "BadMethodCallException", "file": "/var/www/bneapilocal/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php", "line": 50, ` In EloquentBuilderTrait.php In method joinRelatedModelIfExists At line 299 Custom filters on BelongsToMany throws exception on the...
I can't use this for lumen
When using the same custom filter multiple times, the join statement will be appended twice to the query builder. Example of the custom filter: ```php /** * @param Builder $query...
Can you explain how to pass the json array in a get request? I tried using online json to query parameter converters but didnt work
Hi, is it posible to get totatal records count when aplied limit and page?
Hi there, first I'd like to say tanks and congrats for this great package. I'm starting to use this package on my new project and i what to kow if...
Hello There, I can't submit a pull request for this as i've changed so much of the code. However, I found a rather fatal bug when filtering by something that...
I'm trying to include the address in the company It's fine on the singular model. `/api/v1/companies/22?includes%5B%5D=address` ```php $resourceOptions = $this->parseResourceOptions(); $query = $this->project::query(); $this->applyResourceOptions($query, $resourceOptions); $result = $query->find($id); ``` But...
having a page 0 is weird for api dev. to get the first chunk one has to send page=0.