© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
22 replies
Arshavir

BelongsToMany Full Name Accessor

I have
    public function courses()
    {
        return $this->belongsToMany(Course::class);
    }
    public function courses()
    {
        return $this->belongsToMany(Course::class);
    }

in Course Model have
public function getFullNameAttribute()
    {
        return $this->department->name . ' ' . $this->course . ' ' . __('term');
    }
public function getFullNameAttribute()
    {
        return $this->department->name . ' ' . $this->course . ' ' . __('term');
    }


When call Tables\Columns\TextColumn::make('courses.full_name')

Getting empty field.

How can I solve this?
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
SelectFilter show full name
FilamentFFilament / ❓┊help
3y ago
TagsInput belongsToMany
FilamentFFilament / ❓┊help
2y ago