© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
9 replies
Johan

Link table column to relation

Is there an easier way of linking a table column to the relation page? Or is this the way?

Tables\Columns\TextColumn::make('entity.name')
                    ->searchable()
                    ->url(fn (User $record): ?string => $record->entity ? EntityResource::getUrl('edit', ['record' => $record->entity]) : null),
Tables\Columns\TextColumn::make('entity.name')
                    ->searchable()
                    ->url(fn (User $record): ?string => $record->entity ? EntityResource::getUrl('edit', ['record' => $record->entity]) : null),
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

filter table column relation
FilamentFFilament / ❓┊help
3y ago
To Change table column link
FilamentFFilament / ❓┊help
2y ago
Got Problem in Relation Table Column
FilamentFFilament / ❓┊help
2y ago
Column with relationship link to related resource
FilamentFFilament / ❓┊help
3y ago