Commit b8ce7a5f authored by Jens Segers's avatar Jens Segers Committed by GitHub

Merge pull request #1283 from pavemaksim/pavemaksim-patch-config-docs

DSN configuration example added to readme
parents 5ecbf0b2 771ee7ad
......@@ -143,6 +143,18 @@ You can connect to multiple servers or replica sets with the following configura
],
```
Alternatively, you can use MongoDB connection string:
```php
'mongodb' => [
'driver' => 'mongodb',
'dsn' => env('DB_DSN'),
'database' => env('DB_DATABASE'),
],
```
Please refer to MongoDB official docs for its URI format: https://docs.mongodb.com/manual/reference/connection-string/
Eloquent
--------
......
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