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),
Was this page helpful?