laravel-query-builder v7.3.0 introduces `AllowedFilter::groupOr()` and `AllowedFilter::groupAnd()`, allowing multiple column filters to be grouped under a single URL parameter. This solves a common SQL operator precedence bug where using a custom callback filter with OR conditions could leak across AND clauses, returning incorrect results. The new group filters automatically wrap their conditions in parentheses, ensuring correct query logic. The release is fully non-breaking.

4m read timeFrom freek.dev
Post cover image
Table of contents
The basicsThe new bit: grouping filtersCombining group filters with regular filtersIn closing

Sort: