How to use table filters in getEloquentQuery?
Hi,
is there possibility to use filters inside getEloquentQuery? I have custom case with big query inside getEloquentQuery method, that has sub queries inside and my select filter would have to add where conditions to my subqueries.
I tried to do something like this:
In this case $game parameter is set on initial load but later on is null despite being present in the url. Probably it is being cleared.
How to handle such complex cases?
2 Replies
EloquentQuery is the wrong place. But you can use them with
$table->modifyQuery(fn ($livewire) => $livewire-> tableFilters
thx for tip Dennis