Browse Source

Add sqlsrv as group connection

Since the doc says that the Laravel supports SQL Server out of the box, makes sense add it, out of the box.
Hélio 7 years ago
parent
commit
e26bd3ffb0
1 changed files with 10 additions and 0 deletions
  1. 10 0
      config/database.php

+ 10 - 0
config/database.php

@@ -66,6 +66,16 @@ return [
             'schema' => 'public',
             'sslmode' => 'prefer',
         ],
+        
+        'sqlsrv' => [
+            'driver' => 'sqlsrv',
+            'host' => env('DB_HOST', 'localhost'),
+            'database' => env('DB_DATABASE', 'forge'),
+            'username' => env('DB_USERNAME', 'forge'),
+            'password' => env('DB_PASSWORD', ''),
+            'charset' => 'utf8',
+            'prefix' => '',
+        ],
 
     ],