diff --git a/.env b/.env index a827ac35..f209fb7f 100644 --- a/.env +++ b/.env @@ -13,6 +13,7 @@ DB_PORT=14338 DB_DATABASE=ANAG_MACRO DB_USERNAME=woo DB_PASSWORD=4n4traPe@ +DB_OPTIONS='{"Encrypt": true, "TrustServerCertificate": false}' #DB_CONNECTION=sqlsrv DB_HOST_SQLSRVTEST=31.3.180.50 diff --git a/config/database.php b/config/database.php index 87b70f99..4206d204 100755 --- a/config/database.php +++ b/config/database.php @@ -130,6 +130,7 @@ return [ 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true, + 'options' => json_decode(env('DB_OPTIONS', '{}'), true), ], 'sqlsrv_test' => [