indexzer0/eloquent-filtering
Define allowed filters on your Eloquent models and apply them from simple arrays or request data—no custom query logic. Supports complex, type-based filtering for APIs and dashboards on Laravel 10+ / PHP 8.2+.
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?