© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
Emaz

query override

ChatGPT just told me to override Filament's query method (see photo)

This is because I would have to traverse models. Payment belongs to a client, which belongs to a contract, which belongs to a client, which belongs to a user. I was going to make an accessor like $this->contract->client->user->name but then I'd have an n+1 problem, right?

So is this query override standard practice? How should this be handled in V3?
Screenshot_2023-10-07_at_8.25.10_PM.png
Solution
So. TextColumn::make(‘blah.name’) will display the name attribute on the blah relationship.
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

Override Table Query
FilamentFFilament / ❓┊help
3y ago
How to override list resource table query?
FilamentFFilament / ❓┊help
2y ago
Filter queries not override the eloquent query
FilamentFFilament / ❓┊help
3y ago
How to override relationship query "and not exists"
FilamentFFilament / ❓┊help
7mo ago