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