Is it possible to modify the SelectFilter instance in a service provider?

I have used the SelectFilter every where in code. now I want to make them all searchable. Instead of adding ->searchable() everywhere can I change this in a single place?
1 Reply
Patrick Boivin
One option is to create a SearchableSelectFilter class that extends SelectFilter and activate the searchable behavior in the setUp() method. Then do a search and replace in your project to use your custom class.

Did you find this page helpful?