public function destinations($view)
 {
     $view->with('destinations', Destinations::published()->orderBy('parent')->orderBy('ordering')->with('children')->get());
 }
Пример #2
0
 /**
  * Register the application services.
  *
  * @return void
  */
 public function compose($view)
 {
     $view->with('showOnMenu', Destinations::published()->onlyParent()->orderBy('ordering')->with('children')->get());
 }