How to change Laravel Filament Eloquent Query base on a condition?
I have a filament resource with a table. I want to change the table query based on the condition i.e. if there is a filter ->modifyQueryUsing(function (Builder $query){ if (tableFilter) { return $query->with('studentAcademics'); } else { return $query->whereNull('id'); } })…