Update DB2ServiceProvider.php

Create config name entry from connection name
This commit is contained in:
Cooperl Arc Atlantique 2017-07-01 18:31:41 +02:00 committed by GitHub
parent 3ea1576fb0
commit 0b60681a6b

View File

@ -60,7 +60,8 @@ class DB2ServiceProvider extends ServiceProvider
}
// Create a connector
$this->app['db']->extend($conn, function($config) {
$this->app['db']->extend($conn, function($config, $name) {
$config['name'] = $name;
switch ($config['driver']) {
case 'db2_expressc_odbc':
case 'db2_ibmi_odbc':