Skip to content

Releases: spatie/laravel-query-builder

2.5.1

22 Jan 13:24
Compare
Choose a tag to compare
  • fix dealing with empty or null includes (#395)
  • fix passing an associative array of scope filter values (#387)

2.5.0

09 Jan 12:14
d0d8209
Compare
Choose a tag to compare
  • add defaultDirection

2.4.0

04 Jan 22:55
367629a
Compare
Choose a tag to compare
  • add support for a custom filter delimiter (#369)

2.3.0

08 Oct 08:49
Compare
Choose a tag to compare
  • resolve QueryBuilderRequest from service container

2.2.1

03 Oct 10:01
Compare
Choose a tag to compare
  • fix issue when passing camel-cased includes (#336)

2.2.0

03 Oct 10:00
Compare
Choose a tag to compare
  • add option to disable parsing relationship constraints when filtering related model properties in the exact and partial filters (#262)
  • fix selecting fields from included relationships that are multiple levels deep (#317)

2.1.0

03 Sep 13:33
Compare
Choose a tag to compare
  • Add support for Laravel 6

2.0.1

12 Aug 15:01
Compare
Choose a tag to compare
  • update doc block for QueryBuilder::for()
  • add missing typehint in SortsField

2.0.0

12 Aug 10:01
Compare
Choose a tag to compare
  • removed request macros
  • sorts and field selects are not allowed by default and need to be explicitly allowed
  • requesting an include suffixed with Count will add the related models' count using $query->withCount()
  • custom sorts and filters now need to be passed as instances
  • renamed Spatie\QueryBuilder\Sort to Spatie\QueryBuilder\AllowedSort
  • renamed Spatie\QueryBuilder\Included to Spatie\QueryBuilder\AllowedInclude
  • renamed Spatie\QueryBuilder\Filter to Spatie\QueryBuilder\AllowedFilter
  • Filter, Include and Sort interfaces no longer need to return the Builder instance
  • allowedFields should be called before allowedIncludes
  • filters can now have default values
  • includes will be converted to camelcase before being parsed

1.17.5

08 Jul 09:12
Compare
Choose a tag to compare
  • bugfix: correctly parse sorts in chunked query (#299)
  • bugfix: don't parse empty values in arrays for partial filters (#285)