© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
Ashk

Select relationship and "virtual" title attribute

Hello, I have a
Customer
Customer
model with a
first_name
first_name
and
last_name
last_name
field. A virtual field
full_name
full_name
which represents the concat of these 2 fields.
In another resource, which has an belongsTo
Customer
Customer
relationship, I'd like a select based on
full_name
full_name
.

Forms\Components\Select::make('customer_id')
    ->searchable()
    ->relationship(
        name: 'customer',
        titleAttribute: 'email' # working well with email, but I would like to filter by full_name instead of email
    ),
Forms\Components\Select::make('customer_id')
    ->searchable()
    ->relationship(
        name: 'customer',
        titleAttribute: 'email' # working well with email, but I would like to filter by full_name instead of email
    ),


TY
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

Relationship Manager - Custom Title Attributes?
FilamentFFilament / ❓┊help
3y ago
Enum, select and relationship
FilamentFFilament / ❓┊help
12mo ago
Select relationship
FilamentFFilament / ❓┊help
3y ago
--generate asking for title attribute
FilamentFFilament / ❓┊help
4mo ago