Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Eloquent Filter Laravel Package

laravellegends/eloquent-filter

View on GitHub
Deep Wiki
Context7
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 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

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

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
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
solution-forest/ai-kit-core
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata