示例#1
0
 public function __construct(Sitemenu $sitemenu)
 {
     $this->data = [];
     $this->data['menu'] = $sitemenu->getMenu();
 }
 public function index(Sitemenu $sitemenu)
 {
     $this->data['services'] = Service::first();
     $this->data['meta'] = $sitemenu->getMeta('services');
     return view('pages.services.index', $this->data);
 }
示例#3
0
 public function index(Sitemenu $sitemenu)
 {
     $this->data['about'] = About::first();
     $this->data['meta'] = $sitemenu->getMeta('about');
     return view('pages.about.index', $this->data);
 }