/** * @param $id * @return \Illuminate\Contracts\View\View */ public function sort($id) { $crumb = []; Menu::buildCrumb($id, $crumb); $parent = Menu::findOrFail($id); $items = Menu::whereParentId($id)->orderBy('order_id')->get(); $this->share('group', MenuGroup::find($parent->group_id)); $this->share('crumbs', $crumb); $this->share('items', $items); $this->share('parent', $parent); return $this->view('menu.item.sort'); }