Skip to content

Commit

Permalink
Update DB2ServiceProvider.php
Browse files Browse the repository at this point in the history
Create config name entry from connection name
  • Loading branch information
cooperl22 authored Jul 1, 2017
1 parent 3ea1576 commit 0b60681
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DB2ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public function register()
}

// 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':
Expand Down

0 comments on commit 0b60681

Please sign in to comment.