Override Table Query
Hi I have a list of table that uses
->query()
and I also have ->filters()
that has form on it with 1 field Select component. How can I override the ->query() once ->filters() is updated?
Currently, data on table did not change when ->filters()
is activated or changed. When I commented the table ->query()
and apply filters then it works perfectly.2 Replies
My filters is same with this
https://github.com/filamentphp/demo/blob/main/app/Filament/Resources/Shop/OrderResource.php
Maybe I don't understand your question, but a filter is already "overwriting" the base query, otherwise it would be useless. Or what exactly do you mean?