How to create submission confirmation modal in admin panel like requireConfirmation in delete action

I tried to do that way but I just got a notification
protected function beforeCreate(): void
{
Notification::make()
->title('Saved successfully')
->success()
->body('Changes to the post have been saved.')
->actions([
Action::make('view')
->button(),
Action::make('undo')
->color('gray')
])
->send();
$this->halt();
}
protected function beforeCreate(): void
{
Notification::make()
->title('Saved successfully')
->success()
->body('Changes to the post have been saved.')
->actions([
Action::make('view')
->button(),
Action::make('undo')
->color('gray')
])
->send();
$this->halt();
}
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server