How to modify the search results format in Filament's Select field?

I would like the search results to display the name, email and username rather than just the username.
Forms\Components\Select::make('author_id')
->relationship(name: 'author', titleAttribute: 'username')
->searchable(['name', 'username', 'email']),
Forms\Components\Select::make('author_id')
->relationship(name: 'author', titleAttribute: 'username')
->searchable(['name', 'username', 'email']),
No description
4 Replies
Want results from more Discord servers?
Add your server