© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
Steff

Is it possible to handle a description from a related table?

Is it possible to handle a description from a related table? The relationship is there.
Tables\Columns\TextColumn::make('name')
    ->description(fn(Table_1 $record): string => $record->table_2.field),
Tables\Columns\TextColumn::make('name')
    ->description(fn(Table_1 $record): string => $record->table_2.field),

( ->table_2.field doesnt work )
Solution
do you mean
$record->yourRelationship->field
$record->yourRelationship->field
?
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

->description() - is it possible to further style?
FilamentFFilament / ❓┊help
2y ago
is it possible to access the live tableFilters from a widget?
FilamentFFilament / ❓┊help
3y ago
Is it possible to call a table action from a TextColumn cell?
FilamentFFilament / ❓┊help
3y ago
is it possible for a TextInput to get value from another table?
FilamentFFilament / ❓┊help
2y ago