© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

BelongsToMany TextColumn first_name last_name searchable
FilamentFFilament / ❓┊help
3y ago
first name and last name to full name
FilamentFFilament / ❓┊help
3y ago
Slow TextColumn with relationship exists
FilamentFFilament / ❓┊help
3y ago
TextColumn get relationship record
FilamentFFilament / ❓┊help
2y ago