leoms1408
Form Select relationship search in two columns
I have the following code:
Forms\Components\Select::make('person_id')
->relationship('person', 'lastname')
->getOptionLabelFromRecordUsing(fn (Person $record) => $record->getFullname())
->searchable()
->label('Lastname')
->required(),
but i also want to search for firstname in my person table, how can i do this?
4 replies