Skip to content

Commit 38c9103

Browse files
committed
Update readme to conform to new options structure
1 parent eaf2b8f commit 38c9103

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,12 @@ You can connect to multiple servers or replica sets with the following configura
133133
'host' => ['server1', 'server2'],
134134
'port' => env('DB_PORT', 27017),
135135
'database' => env('DB_DATABASE', ''),
136-
'username' => env('DB_USERNAME', ''),
137-
'password' => env('DB_PASSWORD', ''),
138-
'options' => ['replicaSet' => 'replicaSetName']
136+
'options' => [
137+
'replicaSet' => 'replicaSetName',
138+
'db' => 'admin', // sets the authentication database required by mongo 3
139+
'username' => env('DB_USERNAME', ''),
140+
'password' => env('DB_PASSWORD', ''),
141+
]
139142
],
140143
```
141144

0 commit comments

Comments
 (0)