Skip to content

Commit d6f0113

Browse files
committed
Adding documentation for #354
1 parent 86294b8 commit d6f0113

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@ You can connect to multiple servers or replica sets with the following configura
7878
),
7979
```
8080

81+
For usage outside Laravel, check out the [Capsule manager](https://github.com/illuminate/database/blob/master/README.md) and add:
82+
83+
```php
84+
$capsule->getDatabaseManager()->extend('mongodb', function($config)
85+
{
86+
return new Jenssegers\Mongodb\Connection($config);
87+
});
88+
```
89+
8190
Eloquent
8291
--------
8392

0 commit comments

Comments
 (0)