Compare commits

..

No commits in common. "8c81e990b8b54856ac46ceff18fe2bdbb175873e" and "b052a85d242d041575c17f7384cfcd0b5ee014b7" have entirely different histories.

2 changed files with 6 additions and 2 deletions

View File

@ -46,6 +46,8 @@ public function destroy(AcademicTerm $AcademicTerm): RedirectResponse
{ {
$this->service->delete($AcademicTerm); $this->service->delete($AcademicTerm);
return Inertia::flash('toast', ['type' => 'success', 'message' => 'Periode akademik berhasil dihapus.'])->back(); Inertia::flash('toast', ['type' => 'success', 'message' => 'Periode akademik berhasil dihapus.']);
return back();
} }
} }

View File

@ -46,6 +46,8 @@ public function destroy(Department $department): RedirectResponse
{ {
$this->service->delete($department); $this->service->delete($department);
return Inertia::flash('toast', ['type' => 'success', 'message' => 'Jurusan berhasil dihapus.'])->back(); Inertia::flash('toast', ['type' => 'success', 'message' => 'Jurusan berhasil dihapus.']);
return back();
} }
} }