We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9387fe + 4656b83 commit fca7daeCopy full SHA for fca7dae
README.md
@@ -63,8 +63,10 @@ The service provider will register a mongodb database extension with the origina
63
For usage outside Laravel, check out the [Capsule manager](https://github.com/illuminate/database/blob/master/README.md) and add:
64
65
```php
66
-$capsule->getDatabaseManager()->extend('mongodb', function($config)
+$capsule->getDatabaseManager()->extend('mongodb', function($config, $name)
67
{
68
+ $config['name'] = $name;
69
+
70
return new Jenssegers\Mongodb\Connection($config);
71
});
72
```
0 commit comments