Unverified Commit 4f999baf authored by Jens Segers's avatar Jens Segers Committed by GitHub

Merge pull request #1680 from reatang/v3.3.1-bugfix

Fix bug in version 3.3.1
parents fe70309b 317369cf
......@@ -63,8 +63,10 @@ The service provider will register a mongodb database extension with the origina
For usage outside Laravel, check out the [Capsule manager](https://github.com/illuminate/database/blob/master/README.md) and add:
```php
$capsule->getDatabaseManager()->extend('mongodb', function($config)
$capsule->getDatabaseManager()->extend('mongodb', function($config, $name)
{
$config['name'] = $name;
return new Jenssegers\Mongodb\Connection($config);
});
```
......
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