We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaf2b8f commit 38c9103Copy full SHA for 38c9103
README.md
@@ -133,9 +133,12 @@ You can connect to multiple servers or replica sets with the following configura
133
'host' => ['server1', 'server2'],
134
'port' => env('DB_PORT', 27017),
135
'database' => env('DB_DATABASE', ''),
136
- 'username' => env('DB_USERNAME', ''),
137
- 'password' => env('DB_PASSWORD', ''),
138
- 'options' => ['replicaSet' => 'replicaSetName']
+ 'options' => [
+ 'replicaSet' => 'replicaSetName',
+ 'db' => 'admin', // sets the authentication database required by mongo 3
139
+ 'username' => env('DB_USERNAME', ''),
140
+ 'password' => env('DB_PASSWORD', ''),
141
+ ]
142
],
143
```
144
0 commit comments