© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
Matthew

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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

AttachAction in relationManager
FilamentFFilament / ❓┊help
14mo ago
RelationManager in view
FilamentFFilament / ❓┊help
2y ago
condition in relationManager
FilamentFFilament / ❓┊help
3y ago
doubt with getEloquentQuery
FilamentFFilament / ❓┊help
3y ago