TextEntry as link to related resource

What's the easiest way to make Infolists\Components\TextEntry::make('client.name') link to the client's view page?
Solution:
->url(fn($record) => route('my_view', ['id' => $record->id]) or along them lines?...
Jump to solution
2 Replies
Solution
toeknee
toeknee4w ago
->url(fn($record) => route('my_view', ['id' => $record->id]) or along them lines?
frame
frameOP4w ago
Thanks! Got it with ->url(fn ($record) => ClientResource::getUrl('view', ['record' => $record->client_id]))

Did you find this page helpful?