protected function getFormActions(): array
{
return [
$this->getSaveFormAction()
->label('Save and Trigger')
->submit(null)
->action(function (MyModel $new) {
$result = $new->MyTriggerFunction('Some Data');
Notification::make()
->title($result)
->success()
->send();
}),
$this->getCancelFormAction()
];
protected function getFormActions(): array
{
return [
$this->getSaveFormAction()
->label('Save and Trigger')
->submit(null)
->action(function (MyModel $new) {
$result = $new->MyTriggerFunction('Some Data');
Notification::make()
->title($result)
->success()
->send();
}),
$this->getCancelFormAction()
];