getEloquentQuery() in the RelationManager

I don't think that when a resource is being queried through a RelationManager, it the query via:
getEloquentQuery
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([ // ... ]);...
Jump to solution
3 Replies
Solution
ddoddsr
ddoddsr6mo ago
This will work. ```return $table ->modifyQueryUsing(fn (Builder $query) => $query->where('is_active', true)) ->columns([ // ... ]);
Matthew
MatthewOP6mo ago
Thanks.

Did you find this page helpful?