diff --git a/README.md b/README.md index 1f91c1b..f73f2d2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +Forked from [TerbiumLibs/dbConfig](https://github.com/TerbiumLibs/dbConfig/)! + # Laravel 5 Config with DB-storage support This package extends default laravel Config, so fallback capability is built in diff --git a/composer.json b/composer.json index 14d342f..33a3f45 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,13 @@ { - "name": "terbium/db-config", + "name": "chrisd-autume/db-config", "description": "Laravel Config with DB-storage support", "keywords": ["laravel","configuration"], "type": "library", "authors": [ + { + "name": "Chris", + "email": "christian@dautume.fr" + }, { "name": "YAAP", "email": "yaapis@gmail.com" diff --git a/src/Terbium/DbConfig/DbConfigServiceProvider.php b/src/Terbium/DbConfig/DbConfigServiceProvider.php index 8a4affe..5663b12 100644 --- a/src/Terbium/DbConfig/DbConfigServiceProvider.php +++ b/src/Terbium/DbConfig/DbConfigServiceProvider.php @@ -45,7 +45,7 @@ public function register() $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'); diff --git a/src/Terbium/DbConfig/DbProvider.php b/src/Terbium/DbConfig/DbProvider.php index fb28457..2a8ae42 100755 --- a/src/Terbium/DbConfig/DbProvider.php +++ b/src/Terbium/DbConfig/DbProvider.php @@ -46,7 +46,7 @@ public function load($collection = null) // convert dotted list back to multidimensional array foreach ($list as $key => $value) { - $value = json_decode($value); + //$value = json_decode($value); array_set($items, $key, $value); } @@ -111,7 +111,7 @@ function () use (&$provider, $table, $key, $value) { // See http://laravel.uservoice.com/forums/175973-laravel-4/suggestions/3535821-provide-support-for-bulk-insert-with-update-such- - $value = json_encode($value); + //$value = json_encode($value); try {