F
Filamentβ€’6mo ago
repley_07

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
toeknee
toekneeβ€’6mo ago
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
repley_07
repley_07β€’6mo ago
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
toeknee
toekneeβ€’6mo ago
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