Add comment and check if parameters are set

parent 2948b714
......@@ -136,8 +136,9 @@ class Connection extends \Illuminate\Database\Connection
$driverOptions = $config['driver_options'];
}
$options['username'] = $config['username'];
$options['password'] = $config['password'];
// Get the credentials from the config and check if they are set
$options['username'] = isset($options['username']) ? $config['username'] : '';
$options['password'] = isset($options['password']) ? $config['password'] : '';
return new Client($dsn, $options, $driverOptions);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment