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
iRelaxer
iRelaxer9mo ago
->recordTitle(fn ($record) => $record->name), @Xiquita
Xiquita
Xiquita9mo ago
OK thanks