Closed Rkallenkoot closed 3 years ago
If you don't need the filter callback, you can simply set it to null
:
...
'filter' => null,
...
If you need a filter, you can provide it in every way, PHP allows to provide a callable, for example
...
'filter' => 'my_filter_func',
...
Just out of interest: How and why do you cache the config?
We do config caching, too. To gain a little bit performance: https://laravel.com/docs/8.x/configuration#configuration-caching
Would be great if the filter and properties settings were set to null by default.
I've changed the default value now.
Because of the filter config in this addon, we're unable to cache the config. Any idea's if there's another way to get the functionality without using a closure in configs?