indexzer0/eloquent-filtering
Filter Laravel Eloquent models using simple arrays and request data—no custom query spaghetti. Define allowed filters on your models, support complex search, and keep queries readable, maintainable, and easy to extend for APIs and dashboards.
Suppress exceptions and register your custom filters in the published config file.
eloquent-filtering.php config file will be published via the install command.
php artisan eloquent-filtering:install
return [
'default_allowed_sort_list' => 'none',
'suppress' => [
'filter' => [
'invalid' => false,
'missing' => false,
'malformed_format' => false,
'denied' => false,
],
'sort' => [
'malformed_format' => false,
'denied' => false,
],
],
'custom_filters' => [
],
];
How can I help you explore Laravel packages today?