Releases: spatie/laravel-query-builder
Releases · spatie/laravel-query-builder
2.5.1
2.5.0
- add
defaultDirection
2.4.0
2.3.0
- resolve
QueryBuilderRequest
from service container
2.2.1
2.2.0
2.1.0
- Add support for Laravel 6
2.0.1
- update doc block for
QueryBuilder::for()
- add missing typehint in
SortsField
2.0.0
- 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
toSpatie\QueryBuilder\AllowedSort
- renamed
Spatie\QueryBuilder\Included
toSpatie\QueryBuilder\AllowedInclude
- renamed
Spatie\QueryBuilder\Filter
toSpatie\QueryBuilder\AllowedFilter
Filter
,Include
andSort
interfaces no longer need to return theBuilder
instanceallowedFields
should be called beforeallowedIncludes
- filters can now have default values
- includes will be converted to camelcase before being parsed