Skip to content

Releases: LaravelLegends/eloquent-filter

3.0.0

21 Dec 10:53
Compare
Choose a tag to compare

Changes from version 2 to 3

  • Now, php artisan make:filter is avaliable.
  • $allowedFilters was renamed to $filterables.
  • Filterable::getFilterable was renamed to Filterable::getFilterables
  • HasFilter was moved to Concerns\HasFilter;
  • Now, the Filterable interface should be used in Model Filter class instead of on a model.
  • The withFilter method was added in Concerns\HasTrait

2.2.0

06 Nov 01:44
Compare
Choose a tag to compare

Changelog

  • LaravelLegends\EloquentFilter\Contracts\Filterable interface added.
  • Rename inteface Searchable to LaravelLegends\EloquentFilter\Contracts\ApplicableFilter.
  • Remove deprecated methods getRulesFromRequest, restrict, unrestricted from Filter.
  • Added Filter::from method
  • Now, the apply and getCallback methods accepts Request instance or array as argument.
  • Added year_max, year_min and year_exact rules.
  • The filterRestrictions was removed. Use allowedFilters property or implement Filterable interface on your model instead of.

2.0.0

03 Feb 17:09
Compare
Choose a tag to compare

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