diff --git a/src/Http/Controllers/KabupatenController.php b/src/Http/Controllers/KabupatenController.php index c2fa532..b0687ca 100644 --- a/src/Http/Controllers/KabupatenController.php +++ b/src/Http/Controllers/KabupatenController.php @@ -43,7 +43,7 @@ public function update(Update $request, Kabupaten $kabupaten) { $kabupaten->update($request->validated()); - return redirect()->back()->withSuccess('Kabupaten saved'); + return redirect()->route('indonesia::kabupaten.edit', $kabupaten)->withSuccess('Kabupaten saved'); } public function destroy(Kabupaten $kabupaten) diff --git a/src/Http/Controllers/KecamatanController.php b/src/Http/Controllers/KecamatanController.php index 211759c..27ef403 100644 --- a/src/Http/Controllers/KecamatanController.php +++ b/src/Http/Controllers/KecamatanController.php @@ -41,7 +41,7 @@ public function update(Update $request, Kecamatan $kecamatan) { $kecamatan->update($request->validated()); - return redirect()->back()->withSuccess('Kecamatan saved'); + return redirect()->route('indonesia::kecamatan.edit', $kecamatan)->withSuccess('Kecamatan saved'); } public function destroy(Kecamatan $kecamatan) diff --git a/src/Http/Controllers/KelurahanController.php b/src/Http/Controllers/KelurahanController.php index e272f5f..e174cae 100644 --- a/src/Http/Controllers/KelurahanController.php +++ b/src/Http/Controllers/KelurahanController.php @@ -41,7 +41,7 @@ public function update(Update $request, Kelurahan $kelurahan) { $kelurahan->update($request->validated()); - return redirect()->back()->withSuccess('Kelurahan saved'); + return redirect()->route('indonesia::kelurahan.edit', $kelurahan)->withSuccess('Kelurahan saved'); } public function destroy(Kelurahan $kelurahan) diff --git a/src/Http/Controllers/ProvinsiController.php b/src/Http/Controllers/ProvinsiController.php index 14e50ae..f0099cf 100644 --- a/src/Http/Controllers/ProvinsiController.php +++ b/src/Http/Controllers/ProvinsiController.php @@ -43,7 +43,7 @@ public function update(Update $request, Provinsi $provinsi) { $provinsi->update($request->validated()); - return redirect()->route('indonesia::provinsi.show', $provinsi)->withSuccess('Provinsi saved'); + return redirect()->route('indonesia::provinsi.edit', $provinsi)->withSuccess('Provinsi saved'); } public function destroy(Provinsi $provinsi)