getEloquentQuery() in the RelationManager
I don't think that when a resource is being queried through a RelationManager, it the query via:
I've tried placing the same method in the ResourceRelationsManager to no avail.
Any ideas?
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([
// ...
]);
->modifyQueryUsing(fn (Builder $query) => $query->where('is_active', true))
->columns([
// ...
]);