Skip to content
This repository was archived by the owner on Aug 15, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/Terbium/DbConfig/DbConfigServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
4 changes: 2 additions & 2 deletions src/Terbium/DbConfig/DbProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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 {

Expand Down