mergeConfigFrom(__DIR__.'/config/config.php', 'bootstrap_form'); $this->app->singleton('bootstrap_form', function($app) { return new BootstrapForm($app['html'], $app['form'], $app['config']); }); } /** * Boot the service provider. * * @return void */ public function boot() { $this->publishes([ __DIR__.'/config/config.php' => config_path('bootstrap_form.php') ], 'config'); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return ['bootstrap_form']; } }