Whats New v2
Added
FilterType Enum
All core filters provided by this package can be used via string or via new FilterType
enum.
Required Filters
Filters can be marked as required.
Pivot Filters
Pivot filter support for BelongsToMany
and MorphToMany
relationships.
Morph Filters
Validation Rules
Validation rules, messages, and attributes can be defined on a per FilterType
basis.
Filter Modifiers
Exceptions
New exceptions for new features.
Changed
Qualifying Columns
By default, columns are now qualified with database table when using Filter::field()
with any of the core filters provided by this package.
Custom Filters Structure
Custom filters no longer should extend abstract classes.
See custom filters for how custom filter classes should now be structured.
Removed
Filters
Some dedicated filter classes were removed in favour of new modifiers feature.
$like:start
.$like:end
.$notLike:start
.$notLike:end
.
allowedFilters()
definitions should be updated.
Filter::all()
Filter::all()
has been removed due to not being able to support pivot filters feature.
Target::relationAlias()
has been removed due to Filter::all()
being removed.
Types::except()
Removed due to un-needed complexity.
Config
default_allowed_filter_list
has been removed from the config file due to Filter::all()
being removed.
All Filterable
models default to no filters allowed.