Skip to content

Commit 04fa174

Browse files
configuration for mssql
1 parent 50bec5e commit 04fa174

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.env.example

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,19 @@ LOG_CHANNEL=stack
88
LOG_DEPRECATIONS_CHANNEL=null
99
LOG_LEVEL=debug
1010

11-
DB_CONNECTION=mysql
11+
#DB_CONNECTION=mysql
1212
DB_HOST=127.0.0.1
1313
DB_PORT=3306
1414
DB_DATABASE=laravel
1515
DB_USERNAME=root
1616
DB_PASSWORD=
1717

18+
DB_CONNECTION=sqlsrv
19+
MS_PASSWORD=Manuel@Passw0rd
20+
MS_DATABASE=master
21+
MS_USERNAME=sa
22+
MS_HOST=mssql
23+
1824
BROADCAST_DRIVER=log
1925
CACHE_DRIVER=file
2026
FILESYSTEM_DISK=local

config/database.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@
8181
'sqlsrv' => [
8282
'driver' => 'sqlsrv',
8383
'url' => env('DATABASE_URL'),
84-
'host' => env('DB_HOST', 'localhost'),
85-
'port' => env('DB_PORT', '1433'),
86-
'database' => env('DB_DATABASE', 'forge'),
87-
'username' => env('DB_USERNAME', 'forge'),
88-
'password' => env('DB_PASSWORD', ''),
84+
'host' => env('MS_HOST', 'localhost'),
85+
'port' => env('MS_PORT', '1433'),
86+
'database' => env('MS_DATABASE', 'forge'),
87+
'username' => env('MS_USERNAME', 'forge'),
88+
'password' => env('MS_PASSWORD', ''),
8989
'charset' => 'utf8',
9090
'prefix' => '',
9191
'prefix_indexes' => true,

0 commit comments

Comments
 (0)