Releases: LaravelLegends/eloquent-filter
Releases · LaravelLegends/eloquent-filter
3.0.0
Changes from version 2 to 3
- Now,
php artisan make:filter
is avaliable. $allowedFilters
was renamed to$filterables
.Filterable::getFilterable
was renamed toFilterable::getFilterables
HasFilter
was moved toConcerns\HasFilter
;- Now, the
Filterable
interface should be used in Model Filter class instead of on a model. - The
withFilter
method was added inConcerns\HasTrait
2.2.0
Changelog
LaravelLegends\EloquentFilter\Contracts\Filterable
interface added.- Rename inteface
Searchable
toLaravelLegends\EloquentFilter\Contracts\ApplicableFilter
. - Remove deprecated methods
getRulesFromRequest
,restrict
,unrestricted
fromFilter
. - Added
Filter::from
method - Now, the
apply
andgetCallback
methods acceptsRequest
instance orarray
as argument. - Added
year_max
,year_min
andyear_exact
rules. - The
filterRestrictions
was removed. UseallowedFilters
property or implementFilterable
interface on your model instead of.
2.0.0
Changelog
- The filter rules was moved to classes that implementing
Searchable
interface. - Now searches can be used in reladed models.
- Trait HasFilter added
- Hability to restrict fields with rules