Is it possible to apply a filter from an action?
I need to create a shortcut filter. I came up with the idea of defining an
Action
in headerActions
. So I am wondering, if there is any possibility to apply filter from an action or possibly modify the eloquent query.
4 Replies
This is what i came up with for now:
You can try
@rumi In case you’re interested I’ve created a plug-in to do just this: give users quick access to filter setting right above the table. (And forgive the shameless plug, just thought it might help.) https://filamentphp.com/plugins/filter-sets
Filament
Filter Sets by Kenneth Sese - Plugins - Filament
Filament Filter Sets lets you save your existing filters, search query, column order, and column search queries into one easily accessible filter set.
Thanks for the help Dan!