/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $menu = $this->menu->findOrFail($id); $pages = Page::active()->get(); $categories = Category::withDepth()->defaultOrder()->descendantsOf(1)->linkNodes(); return view('berrier::admin.menus.edit')->with(compact('menu'))->with(compact('pages'))->with(compact('categories')); }