Commit bb8bae4c authored by Jens Segers's avatar Jens Segers

Update README.md

parent e1c12ac0
...@@ -116,9 +116,9 @@ And add a new mongodb connection: ...@@ -116,9 +116,9 @@ And add a new mongodb connection:
'driver' => 'mongodb', 'driver' => 'mongodb',
'host' => env('DB_HOST', 'localhost'), 'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', 27017), 'port' => env('DB_PORT', 27017),
'database' => env('DB_DATABASE', ''), 'database' => env('DB_DATABASE'),
'username' => env('DB_USERNAME', ''), 'username' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD', ''), 'password' => env('DB_PASSWORD''),
'options' => [ 'options' => [
'db' => 'admin' // sets the authentication database required by mongo 3 'db' => 'admin' // sets the authentication database required by mongo 3
] ]
...@@ -132,9 +132,9 @@ You can connect to multiple servers or replica sets with the following configura ...@@ -132,9 +132,9 @@ You can connect to multiple servers or replica sets with the following configura
'driver' => 'mongodb', 'driver' => 'mongodb',
'host' => ['server1', 'server2'], 'host' => ['server1', 'server2'],
'port' => env('DB_PORT', 27017), 'port' => env('DB_PORT', 27017),
'database' => env('DB_DATABASE', ''), 'database' => env('DB_DATABASE'),
'username' => env('DB_USERNAME', ''), 'username' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD', ''), 'password' => env('DB_PASSWORD'),
'options' => ['replicaSet' => 'replicaSetName'] '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