AttachAction: change the label in the select

Hi, there is a way to edit the label of the option in the attacaction's select? I try like that: Tables\Actions\AttachAction::make() ->recordSelect( fn (Select $select) => $select ->placeholder('Seleziona un team') ->getOptionLabelFromRecordUsing(fn (Model $record) => "Example") ) ->preloadRecordSelect(),
2 Replies
Dennis Koch
Dennis Koch2y ago
I bet there is a recordSelectLabel() or similar.
ccc1516
ccc1516OP2y ago
i don't find anything in the doc for recordSelectLabel

Did you find this page helpful?