© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
msalehi

Column with relationship link to related resource

Hey there,

i want to have a TextColumn that related to a resource, for example:

TextColumn::make('user.name')
TextColumn::make('user.name')

how do i relate the column to related resource using a link ? (By clicking on the name, the user can be directed to its page.)
Solution
you can do

TextColumn::make('user.name')
  ->url(fn($record): string => UserResource::getUrl('view',['record'=>$record->user->id])),
TextColumn::make('user.name')
  ->url(fn($record): string => UserResource::getUrl('view',['record'=>$record->user->id])),
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

Create related resource with another relationship
FilamentFFilament / ❓┊help
10mo ago
TextEntry as link to related resource
FilamentFFilament / ❓┊help
14mo ago
Handling null id in column url to related resource
FilamentFFilament / ❓┊help
2y ago
Column relationship
FilamentFFilament / ❓┊help
3y ago