Skip to content

Commit

Permalink
add options to build dsn with secure sql server connection (#17841)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliekassel authored and taylorotwell committed Feb 9, 2017
1 parent b7e5a88 commit 0804f42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Illuminate/Database/Connectors/SqlServerConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ protected function getSqlSrvDsn(array $config)
$arguments['APP'] = $config['appname'];
}

if (isset($config['encrypt'])) {
$arguments['Encrypt'] = $config['encrypt'];
}

if (isset($config['trust_server_certificate'])) {
$arguments['TrustServerCertificate'] = $config['trust_server_certificate'];
}

return $this->buildConnectString('sqlsrv', $arguments);
}

Expand Down

0 comments on commit 0804f42

Please sign in to comment.