/** * @param $view */ public function compose($view) { $items = $this->menu->all(); $menus = $this->menu->getFrontMenuHTML($items); $view->with('menus', $menus); }
/** * @param $id * @return bool */ public function hasChildItems($id) { $this->menu->hasChildItems($id); }