@@ -116,9 +116,9 @@ And add a new mongodb connection:
116116 'driver' => 'mongodb',
117117 'host' => env('DB_HOST', 'localhost'),
118118 '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'),
122122 'options' => [
123123 'db' => 'admin' // sets the authentication database required by mongo 3
124124 ]
@@ -132,9 +132,9 @@ You can connect to multiple servers or replica sets with the following configura
132132 'driver' => 'mongodb',
133133 'host' => ['server1', 'server2'],
134134 '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'),
138138 'options' => ['replicaSet' => 'replicaSetName']
139139],
140140```
0 commit comments