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.
I want for example:
How to do it?
And the search also needs to work by full name.
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.