Ejemplo n.º 1
0
 /**
  * Bind data to the view.
  *
  * @param  View  $view
  * @return void
  */
 public function compose(View $view)
 {
     $locale = Session::get('locale');
     $header_id = $this->menu->getMenuID('header');
     $header = '';
     $header_items = $this->link->getLinks($header_id, $locale);
     //dd($header_items);
     if ($header_items->count()) {
         $menu = new MenuLink();
         $header_links = $this->link->getHTML($header_items, $locale);
     }
     //dd($header_links);
     $view->with('header_links', $header_links);
 }