Custom filters
Hello!
Is it possible to create a button to apply a custom DB query to the Filament tables?
For example I would like to see the users who are registered before Christmas and have orders, but I don't want to select the filters, just "apply" this to the table with one click.
Thanks!
3 Replies
Have you seend Advanced Custom Filters plugin? that would do what you want π
But otherwise, you can set the filters from your own button absolutely. Either in a get request, or with the session and a component refresh
Sounds good. Could you link the plugin please? I can't find anything like that. By the way how do add custom query to the Filament tables? I can't find any code on the internet.
Thanks
https://filamentphp.com/plugins/dmandrade-advancedfilter
This will allow you to have filter sets and apply them from a click
Filament
AdvancedFilter by Danilo Andrade - Filament
A collection of easy-to-use filters with clause conditions