Releases: LaravelLegends/eloquent-filter
Releases · LaravelLegends/eloquent-filter
3.0.0
Changes from version 2 to 3
- Now,
php artisan make:filteris avaliable. $allowedFilterswas renamed to$filterables.Filterable::getFilterablewas renamed toFilterable::getFilterablesHasFilterwas moved toConcerns\HasFilter;- Now, the
Filterableinterface should be used in Model Filter class instead of on a model. - The
withFiltermethod was added inConcerns\HasTrait
2.2.0
Changelog
LaravelLegends\EloquentFilter\Contracts\Filterableinterface added.- Rename inteface
SearchabletoLaravelLegends\EloquentFilter\Contracts\ApplicableFilter. - Remove deprecated methods
getRulesFromRequest,restrict,unrestrictedfromFilter. - Added
Filter::frommethod - Now, the
applyandgetCallbackmethods acceptsRequestinstance orarrayas argument. - Added
year_max,year_minandyear_exactrules. - The
filterRestrictionswas removed. UseallowedFiltersproperty or implementFilterableinterface on your model instead of.
2.0.0
Changelog
- The filter rules was moved to classes that implementing
Searchableinterface. - Now searches can be used in reladed models.
- Trait HasFilter added
- Hability to restrict fields with rules