findOrFail($id); $menuItems = $menu->menuItems() ->withoutGlobalScope('active') ->withoutGlobalScope('not_root') ->get() ->nest(); return view('menu::admin.menus.edit', compact('menu', 'menuItems')); } /** * Redirect to url after saving a resource. * * @param Menu $menu * * @return Response */ protected function redirectTo($menu) { return redirect()->route('admin.menus.edit', $menu); } }