From c12a7e6f24d102e435996f7008e956ad53c35e19 Mon Sep 17 00:00:00 2001 From: KuenzelIT Date: Mon, 1 May 2017 14:03:54 +0200 Subject: [PATCH] Added compatibility for Laravel 5.4 by replacing the containers share method with the singleton method --- src/Terbium/DbConfig/DbConfigServiceProvider.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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(); }