is there a method to display the value of selectColumn read_only in table?
I have a select in the forms that works to get the user id of several related records . I would like to display in the table the user name not the user id
TextColumn::make('sectionLeader.last_name'), gives me an empty column . my function for the relationship is public function sectionLeader(): BelongsTo
{
return $this->belongsTo(User::class, 'section_leader' );
}Select::make('sectionLeader')
->label('Section Leader')
->options(User::all()
->pluck('full_name', 'id'))
->searchable(),public function sectionLeader(): BelongsTo
{
return $this->belongsTo(User::class, 'section_leader' );
}TextColumn::make('sectionLeader.last_name'), gives me an empty column .relationship() is for the form, i need to look t that next but the table iview of the relationship is not workingsection_leader_id so that it does not clash with your relationship namesectionLeaderreturn $this->belongsTo(User::class, 'section_leader_id'); and Select::make('section_leader_id') and TextColumn::make('sectionLeader.last_name')
TextColumn::make('sectionLeader.last_name'),TextColumn::make('sectionLeader.last_name'),public function sectionLeader(): BelongsTo
{
return $this->belongsTo(User::class, 'section_leader' );
}public function sectionLeader(): BelongsTo
{
return $this->belongsTo(User::class, 'section_leader' );
}Select::make('sectionLeader')
->label('Section Leader')
->options(User::all()
->pluck('full_name', 'id'))
->searchable(),relationship()section_leader_idsectionLeaderreturn $this->belongsTo(User::class, 'section_leader_id');Select::make('section_leader_id')TextColumn::make('sectionLeader.last_name')