© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
14 replies
WEBMAS

How to make a custom titleAttribute in Select::make('course_id')->relationship ?

Hello

I want to change titleAttribute. I need to display additional fields in the option names.

Select::make('course_id')
->relationship('course', 'number')
->searchable()
Select::make('course_id')
->relationship('course', 'number')
->searchable()


I want for example:
->relationship('course', 'number title year')
->relationship('course', 'number title year')


How to do it?

And the search also needs to work by full name.
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

Filament Select with Relationship: Custom Label for titleAttribute Options
FilamentFFilament / ❓┊help
14mo ago
Retriving album_id from a relationships - Select::make('album:id)
FilamentFFilament / ❓┊help
3y ago
make select without relationship
FilamentFFilament / ❓┊help
2y ago
How to get name instead of id in a select with relationship
FilamentFFilament / ❓┊help
3y ago