F
Filament16mo ago
ocram82

TextColumn with relationship first_name, last_name

Hi all, in the table i have the following code:
return $table
->columns([
Tables\Columns\TextColumn::make('absentTeacher.first_name')
->label('Teacher Absent')
->sortable(),

...
return $table
->columns([
Tables\Columns\TextColumn::make('absentTeacher.first_name')
->label('Teacher Absent')
->sortable(),

...
In the text of the colum i would to take the absentTeacher.first_name and absentTeacher.last_name, how can i do that? thanks
1 Reply
Want results from more Discord servers?
Add your server