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()

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

How to do it?

And the search also needs to work by full name.
Was this page helpful?