mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
fix filament resource notify
This commit is contained in:
@@ -18,16 +18,10 @@ class CreateUser extends CreateRecord
|
||||
$data = $this->form->getState();
|
||||
try {
|
||||
$this->record = $userRep->store($data);
|
||||
$this->notify(
|
||||
'success ',
|
||||
$this->getCreatedNotificationTitle(),
|
||||
);
|
||||
send_admin_success_notification();
|
||||
$this->redirect($this->getRedirectUrl());
|
||||
} catch (\Exception $exception) {
|
||||
$this->notify(
|
||||
'danger',
|
||||
$exception->getMessage(),
|
||||
);
|
||||
send_admin_fail_notification($exception->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user