diff --git a/src/Illuminate/Database/Connectors/SqlServerConnector.php b/src/Illuminate/Database/Connectors/SqlServerConnector.php index 24da4e76c02b..dfc02d77ef31 100755 --- a/src/Illuminate/Database/Connectors/SqlServerConnector.php +++ b/src/Illuminate/Database/Connectors/SqlServerConnector.php @@ -46,7 +46,7 @@ protected function getDsn(array $config) if (in_array('dblib', $this->getAvailableDrivers())) { return $this->getDblibDsn($config); } elseif (in_array('odbc', $this->getAvailableDrivers())) { - if (isset($config['driver']) && $config['driver'] === 'odbc') { + if (isset($config['odbc']) && $config['odbc'] === true) { return $this->getOdbcDsn($config); } else { return $this->getSqlSrvDsn($config);