How to reverse buttons in createOptionAction

Hi i am trying to reverse a buttons in the createOptionAction i tried everything nothing works for me. Down below you can see what i want
No description
2 Replies
mile4841
mile4841OP4mo ago
This is what i have
No description
mile4841
mile4841OP4mo ago
Mine code for generating this modal is
Select::make('tags.title')
->relationship('tags', 'title')
->label('Tags')
->searchable()
->multiple()
->createOptionForm([
TextInput::make('title')
->unique()
->required()
->maxLength(255)

])->createOptionAction(function(Action $action){
$action->mutateFormDataUsing(function(array $data){
$data['slug'] = $data['title'];
return $data;
});
}),
Select::make('tags.title')
->relationship('tags', 'title')
->label('Tags')
->searchable()
->multiple()
->createOptionForm([
TextInput::make('title')
->unique()
->required()
->maxLength(255)

])->createOptionAction(function(Action $action){
$action->mutateFormDataUsing(function(array $data){
$data['slug'] = $data['title'];
return $data;
});
}),
Want results from more Discord servers?
Add your server