© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
Raj Siva-Rajah

Using eager loaded relationships in custom table column views

Hi all

I have a custom table column that needs to use relationship data. I can access data using
$getRecord()->user()->name
$getRecord()->user()->name
. The problem is this isn't eager loaded so I get an extra query for every table row.

Any ideas how I can solve that?

Cheers
Solution
I mean you add the dot with the relation I think all the record will be available! havent tested that case actually

you can always override the query and add
with()
with()
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

Eager loaded relationships filter
FilamentFFilament / ❓┊help
2y ago
Eager loading relationships in table
FilamentFFilament / ❓┊help
2y ago
Eager loading relationships in table
FilamentFFilament / ❓┊help
3y ago
Problem: Exporter Not Working with Eager-Loaded Relationships
FilamentFFilament / ❓┊help
13mo ago