© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
PabloZagni

How to combine multiple fields into one? Address field

Hi, my model has:

$table->string('name');
$table->string('email')->nullable()->unique();
$table->string('phone')->nullable();
$table->string('address')->nullable();
$table->integer('number')->nullable();
$table->string('city')->nullable();
$table->string('state')->nullable();

So, I need to have a searchable TextColumn with the field concatenated like:

4 Pennsylvania Plaza, New York, NY 10001, EE. UU.

I've tryed to create an attirbute

public function getFulladdressAttribute() : string {
return $this->address.' '.$this->number.' '.$this->city', '.$this->state;
}

but it's not found in the database.
Thanks
Solution
virtual column is an option
https://filamentphp.com/docs/3.x/forms/fields/select#customizing-the-relationship-option-labels

TextColumn::make('full_address')->searchable()
TextColumn::make('full_address')->searchable()
Select - Form Builder - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Table combine multiple values into one column with multiple rows
FilamentFFilament / ❓┊help
3y ago
how to combine multiple resources in one form
FilamentFFilament / ❓┊help
3y ago
How do I combine two actions into one?
FilamentFFilament / ❓┊help
2y ago
One field, multiple inputs
FilamentFFilament / ❓┊help
3y ago