You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My mistake. The package in its pre-alpha versions was intended for Windows, so the connection was made from ODBC, where it replicated the entire structure of the Laravel Database. If you go to: vendor/laravel/framework/src/Illuminate/Database/Connectors/SqlServerConnector.php and change the getDsn function to:
protected function getDsn(array $config)
{
$arguments = [
'Driver' => '{Adaptive Server Enterprise}',
'server' => $config['host'],
];
if (isset($config['database'])) {
$arguments['db'] = $config['database'];
}
if (isset($config['port'])) {
$arguments['port'] = $config['port'];
}
if (isset($config['appname'])) {
$arguments['APP'] = $config['appname'];
}
return $this->buildConnectString($arguments);
}
Hi, do you have an example of using odbc with this package? I'm not sure how I would put my connection details in the database config file for it.
The text was updated successfully, but these errors were encountered: