laravel-query-builder icon indicating copy to clipboard operation
laravel-query-builder copied to clipboard

Easily build Eloquent queries from API requests

Results 18 laravel-query-builder issues
Sort by recently updated
recently updated
newest added

When we call the following route `/api/product-categories/1?fields[product-categories]=id,name` it does not work and gives a 400 error. but when we change the fields key to `[product_categories]` -which is the table name...

Thanks for the package! Really enjoying it! In my testing it appears that empty filters cause some hefty delays. It appears the delays are in the code, not the database...

https://github.com/spatie/laravel-query-builder/blob/9b7bf9123a66ddd38e0e2e9c1138b69c2325b11a/src/QueryBuilderRequest.php#L32 Is there a reason why the `fromRequest` method creates a new instance of `self()` rather than `static()` this means if you extend the class you have to then also...

This PR addresses two issues: - automatic snake_case conversion of included relations: #792, #440, #640 - respecting allowed fields for relationship fields: #681 I've tried to split them originally but...

**Using V4.0.1** When we do the following: ``` QueryBuilder::for(Post::class) ->allowedFields('author.id', 'author.name') ->allowedIncludes('author'); ``` And query the endpoint like so: ``` GET /posts?include=author&fields[author]=id,name ``` It appears to list _all_ the fields...

Hi I am using this package at lot of places but recently putting multiple filters on relationship. And in the query log I found it is appending a lot of...

Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.6.0 to 2.0.0. Release notes Sourced from dependabot/fetch-metadata's releases. v2.0.0 - Switch to node20 What's Changed Upgrade from node16 to node20 by @​Nishnha in dependabot/fetch-metadata#443 👈 this...

dependencies

Hi everyone! First of all, thanks for the amazing package:) So, I stumbled upon what I think it's a bug in the sql LIKE escaping for special chars (`_`, `%`,...

List [query-builder-ts](https://www.npmjs.com/package/@vortechron/query-builder-ts) front-end implementation package