fix another more query
This commit is contained in:
@@ -18,7 +18,7 @@ class CabangController extends Controller
|
||||
session()->put('redirect_url', route('admin.cabang.index'));
|
||||
|
||||
return view('backend.pages.master.cabang.index', [
|
||||
'cabang' => Cabang::all()
|
||||
'cabang' => Cabang::with(['head', 'region', 'cost'])->get()
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class RegionController extends Controller
|
||||
session()->put('redirect_url', route('admin.region.index'));
|
||||
|
||||
return view('backend.pages.master.region.index', [
|
||||
'region' => Region::all()
|
||||
'region' => Region::with('head')->get()
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user