Digging Deeper
Config
Overview
Suppress exceptions and register your custom filters in the published config file.
- This package throws various exception which can be suppressed.
- Custom filters should be registered in the config.
Install
eloquent-filtering.php
config file will be published via the install command.
php artisan eloquent-filtering:install
Default Configuration File
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' => [
],
];