© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
28 replies
Soundmit

Combining 2 fields in one table's column

in my company table i have this code
 Tables\Columns\TextColumn::make('customers.name')
                    ->sortable(),
 Tables\Columns\TextColumn::make('customers.name')
                    ->sortable(),

this show only the name, the relation between company and customer is
 public function customers(): BelongsToMany
    {
        return $this->belongsToMany(Customer::class, 'repairshop_company_customer');
    }
 public function customers(): BelongsToMany
    {
        return $this->belongsToMany(Customer::class, 'repairshop_company_customer');
    }

i need to concat customer.name and customers.last_name
tried different approach but without success
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

Multiple fields in one column
FilamentFFilament / ❓┊help
3y ago
subtract 2 column table
FilamentFFilament / ❓┊help
2y ago
One column per relationship model in table
FilamentFFilament / ❓┊help
3y ago
How poll just one column in a table?
FilamentFFilament / ❓┊help
11mo ago