Update readme to conform to new options structure

parent eaf2b8f1
...@@ -133,9 +133,12 @@ You can connect to multiple servers or replica sets with the following configura ...@@ -133,9 +133,12 @@ You can connect to multiple servers or replica sets with the following configura
'host' => ['server1', 'server2'], 'host' => ['server1', 'server2'],
'port' => env('DB_PORT', 27017), 'port' => env('DB_PORT', 27017),
'database' => env('DB_DATABASE', ''), 'database' => env('DB_DATABASE', ''),
'options' => [
'replicaSet' => 'replicaSetName',
'db' => 'admin', // sets the authentication database required by mongo 3
'username' => env('DB_USERNAME', ''), 'username' => env('DB_USERNAME', ''),
'password' => env('DB_PASSWORD', ''), 'password' => env('DB_PASSWORD', ''),
'options' => ['replicaSet' => 'replicaSetName'] ]
], ],
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment