F
Filament13mo ago
Xiquita

recordSelectSearchColumns on GetRelation

Hello friends, I have a question, I'm in a get relation and I want in an attach action to do a search in the select for the name and for another field in the same table, I tried searching for the field by id and it worked but I wanted to use the name of the field, any solution? Thanks
Tables\Actions\AttachAction::make()
->color('success')
->recordSelectSearchColumns(['name', 'equipmentbrands.name'])
->preloadRecordSelect()
Tables\Actions\AttachAction::make()
->color('success')
->recordSelectSearchColumns(['name', 'equipmentbrands.name'])
->preloadRecordSelect()
I want that equipmentbrands.name to appear in the select search
2 Replies
Meymink
Meymink13mo ago
->recordTitle(fn ($record) => $record->name), @Xiquita
Xiquita
XiquitaOP13mo ago
OK thanks
Want results from more Discord servers?
Add your server