/** * Bootstrap the application services. * * @return void */ public function boot() { view()->composer('coordinates._form', function ($view) { $view->with('trips', Trip::lists('name', 'id')); $view->with('coordinate_types', CoordinateType::lists('name', 'id')); }); }