public function edit($id)
    {
        $menu = $this->repository->find($id);

        if (empty($menu)) {
            Cms::notification('Menu not found', 'warning');

            return redirect(route($this->routeBase.'.menus.index'));
        }

        $links = $this->linkRepository->getLinksByMenu($menu->id);

        return view('cms::modules.menus.edit')->with('menu', $menu)->with('links', $links);
    }
public function edit($id)
    {
        $menu = $this->repository->find($id);

        if (empty($menu)) {
            Cms::notification('Menu not found', 'warning');

            return redirect(route($this->routeBase.'.menus.index'));
        }

        $links = $this->linkRepository->getLinksByMenu($menu->id);

        return view('cms::modules.menus.edit')->with('menu', $menu)->with('links', $links);
    }
public function edit ( $ id ) { $ menu = $ this -> repository -> find ( $ id ) ; if ( empty ( $ menu ) ) { Cms :: notification ( 'Menu not found' , 'warning' ) ; return redirect ( route ( $ this -> routeBase . '.menus.index' ) ) ; } $ links = $ this -> linkRepository -> getLinksByMenu ( $ menu -> id ) ; return view ( 'cms::modules.menus.edit' ) -> with ( 'menu' , $ menu ) -> with ( 'links' , $ links ) ; }
Show the form for editing the specified Menu.

@param int $id

@return Response
Show the form for editing the specified Menu .