@@ -116,9 +116,9 @@ And add a new mongodb connection:
116
116
'driver' => 'mongodb',
117
117
'host' => env('DB_HOST', 'localhost'),
118
118
'port' => env('DB_PORT', 27017),
119
- 'database' => env('DB_DATABASE', '' ),
120
- 'username' => env('DB_USERNAME', '' ),
121
- 'password' => env('DB_PASSWORD', ' '),
119
+ 'database' => env('DB_DATABASE'),
120
+ 'username' => env('DB_USERNAME'),
121
+ 'password' => env('DB_PASSWORD''),
122
122
'options' => [
123
123
'db' => 'admin' // sets the authentication database required by mongo 3
124
124
]
@@ -132,9 +132,9 @@ You can connect to multiple servers or replica sets with the following configura
132
132
'driver' => 'mongodb',
133
133
'host' => ['server1', 'server2'],
134
134
'port' => env('DB_PORT', 27017),
135
- 'database' => env('DB_DATABASE', '' ),
136
- 'username' => env('DB_USERNAME', '' ),
137
- 'password' => env('DB_PASSWORD', '' ),
135
+ 'database' => env('DB_DATABASE'),
136
+ 'username' => env('DB_USERNAME'),
137
+ 'password' => env('DB_PASSWORD'),
138
138
'options' => ['replicaSet' => 'replicaSetName']
139
139
],
140
140
```
0 commit comments