Column with relationship link to related resource
Hey there,
i want to have a TextColumn that related to a resource, for example:
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:Jump to solution
you can do
```php
TextColumn::make('user.name')
->url(fn($record): string => UserResource::getUrl('view',['record'=>$record->user->id])),...
1 Reply
Solution
you can do