From e26bd3ffb01f431935f207dc7a6fdcbd5600d6f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Wed, 3 May 2017 13:20:25 -0300 Subject: [PATCH 1/2] 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. --- config/database.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/database.php b/config/database.php index a196943f..c84e3976 100644 --- a/config/database.php +++ b/config/database.php @@ -66,6 +66,16 @@ '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' => '', + ], ], From 94b39dc576a091f45d72e59c6ac479743f8f9546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lio?= Date: Wed, 3 May 2017 13:22:10 -0300 Subject: [PATCH 2/2] Fix the commit for pass StyleCI --- config/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.php b/config/database.php index c84e3976..2eef08e0 100644 --- a/config/database.php +++ b/config/database.php @@ -66,7 +66,7 @@ 'schema' => 'public', 'sslmode' => 'prefer', ], - + 'sqlsrv' => [ 'driver' => 'sqlsrv', 'host' => env('DB_HOST', 'localhost'),