hot fix conflict routing web and api advertisements

This commit is contained in:
arifal
2025-03-04 15:46:35 +07:00
parent b4ec7a9d25
commit d6d0acf8fb
5 changed files with 196 additions and 178 deletions

View File

@@ -62,7 +62,7 @@ class AdvertisementController extends Controller
// Pastikan model ditemukan
if (!$modelInstance) {
info("AdvertisementController@edit: Model tidak ditemukan.");
return redirect()->route('advertisements.index')->with('error', 'Advertisement not found');
return redirect()->route('web.advertisements.index')->with('error', 'Advertisement not found');
}
// Mengambil dan memetakan village_name dan district_name