leoms1408
leoms1408
FFilament
Created by leoms1408 on 7/8/2024 in #❓┊help
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