Commit 771ee7ad authored by pavemaksim's avatar pavemaksim Committed by GitHub

DSN configuration example added to readme

parent c4a5264b
......@@ -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