feat(perfume): add toast notifications and refresh datatable on save for create and edit actions

This commit is contained in:
Yoga Pangestu 2025-10-16 21:15:29 +07:00
parent 7e4a129bb7
commit 2219534a73
2 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,8 @@ public function save()
$this->form->store();
$this->dispatch('refreshDatatable');
$this->toast('Parfum berhasil ditambahkan.');
$this->redirectRoute('studio.catalog.perfume.index', navigate: true);

View File

@ -45,6 +45,8 @@ public function save()
$this->form->update();
$this->dispatch('refreshDatatable');
$this->toast('Parfum berhasil diperbarui.');
$this->redirectRoute('studio.catalog.perfume.index', navigate: true);