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