diff --git a/src/Terbium/DbConfig/DbConfigServiceProvider.php b/src/Terbium/DbConfig/DbConfigServiceProvider.php index 8a4affe..dc4f77e 100644 --- a/src/Terbium/DbConfig/DbConfigServiceProvider.php +++ b/src/Terbium/DbConfig/DbConfigServiceProvider.php @@ -39,13 +39,11 @@ public function boot() */ public function register() { - - // merge & publihs config $configPath = __DIR__ . '/../../../config/config.php'; $this->mergeConfigFrom($configPath, 'db-config'); $this->publishes([$configPath => config_path('db-config.php')]); - $this->app['db-config'] = $this->app->share(function($app) { + $this->app->singleton('db-config', function($app) { $table = $app['config']->get('db-config.table'); @@ -63,7 +61,6 @@ public function register() */ public function provides() { - return array(); }