Skip to content

Commit 0b60681

Browse files
authored
Update DB2ServiceProvider.php
Create config name entry from connection name
1 parent 3ea1576 commit 0b60681

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DB2ServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ public function register()
6060
}
6161

6262
// Create a connector
63-
$this->app['db']->extend($conn, function($config) {
63+
$this->app['db']->extend($conn, function($config, $name) {
64+
$config['name'] = $name;
6465
switch ($config['driver']) {
6566
case 'db2_expressc_odbc':
6667
case 'db2_ibmi_odbc':

0 commit comments

Comments
 (0)