filament create&edit redirect

This commit is contained in:
xiaomlove
2022-12-01 00:45:22 +08:00
parent 058bb995c1
commit fe6564dd7e
19 changed files with 63 additions and 111 deletions

View File

@@ -24,7 +24,7 @@ class EditExam extends EditRecord
$examRep = new ExamRepository();
try {
$this->record = $examRep->update($data, $this->record->id);
$this->notify('success', $this->getSavedNotificationMessage());
$this->notify('success', $this->getSavedNotificationTitle());
$this->redirect($this->getResource()::getUrl('index'));
} catch (\Exception $exception) {
$this->notify('danger', $exception->getMessage());