FilamentF
Filament16mo ago
Matthew

getEloquentQuery() in the RelationManager

I don't think that when a resource is being queried through a RelationManager, it the query via:
getEloquentQuery


I've tried placing the same method in the ResourceRelationsManager to no avail.

Any ideas?
Solution
This will work. ```return $table
->modifyQueryUsing(fn (Builder $query) => $query->where('is_active', true))
->columns([
// ...
]);
Was this page helpful?