spatie/laravel-query-builder
Safely build Eloquent queries from incoming API requests. Allowlist filters, sorts, includes, and fields; supports partial/exact and custom filters, nested relationships, relation counts, and default values. Works with existing queries for clean, consistent endpoints.
ValueError in query parameter parsing (#1055)Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.4.4...7.0.0
Add Laravel 13 support
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.4.0...6.4.1
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.3.6...6.4.0
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.3.5...6.3.6
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.3.4...6.3.5
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.3.3...6.3.4
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.3.2...6.3.3
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.3.1...6.3.2
.github folder and .php_cs from being included in composer installation by @stevebauman in https://github.com/spatie/laravel-query-builder/pull/993Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.3.0...6.3.1
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.2.3...6.3.0
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.2.2...6.2.3
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.2.1...6.2.2
pgsql driver in FiltersPartial - Fixes #941 by @Talpx1 in https://github.com/spatie/laravel-query-builder/pull/968Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.2.0...6.2.1
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.1.0...6.2.0
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.0.1...6.1.0
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/6.0.0...6.0.1
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.8.1...6.0.0
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.8.0...5.8.1
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.7.0...5.8.0
allowedFields. by @carvemerson in https://github.com/spatie/laravel-query-builder/pull/917unsetDefault as a replacement for default(null) which was removed in 5.6.0 by @patrickrobrecht in https://github.com/spatie/laravel-query-builder/pull/902defaultSort function as documented by @MajidMohammadian in https://github.com/spatie/laravel-query-builder/pull/904disable_invalid_includes_query_exception config option by @dimzeta in https://github.com/spatie/laravel-query-builder/pull/906AllowedFilter.php to include getFilterClass function by @justasSendrauskas in https://github.com/spatie/laravel-query-builder/pull/909Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.6.0...5.7.0
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.5.0...5.6.0
withExists via IncludedExists by @enricodelazzari in https://github.com/spatie/laravel-query-builder/pull/891QueryBuilder is used as a dependency in a package)Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.4.0...5.5.0
request_data_source config. The QueryBuilder will always look at both the query string and the request body when available nownull as the query parameter name for filters (see #889)Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.3.0...5.4.0
fields query parameter by @ezra-obiwale in https://github.com/spatie/laravel-query-builder/pull/872FiltersEndsWithStrict filter by @utsavsomaiya in https://github.com/spatie/laravel-query-builder/pull/885allowedSorts are always set (even when none are requested) @luilliarcec in https://github.com/spatie/laravel-query-builder/pull/865Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.2.0...5.3.0
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.1.2...5.2.0
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.1.1...5.1.2
array_diff_assoc BC break in v5.1.0 by @stevebauman in https://github.com/spatie/laravel-query-builder/pull/827Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.1.0...5.1.1
plucked values (that are not a Model) is not possibleFull Changelog: https://github.com/spatie/laravel-query-builder/compare/4.0.3...4.0.4
beginsWithStrict filter by @danilopinotti in https://github.com/spatie/laravel-query-builder/pull/821Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.0.3...5.1.0
Full Changelog: https://github.com/spatie/laravel-query-builder/compare/3.6.2...3.6.3
${var} string interpolation deprecation by @Ayesh in https://github.com/spatie/laravel-query-builder/pull/779__invoke() method of Filter by @kayw-geek in https://github.com/spatie/laravel-query-builder/pull/781Full Changelog: https://github.com/spatie/laravel-query-builder/compare/5.0.2...5.0.3
How can I help you explore Laravel packages today?