Skip to content

Commit fca7dae

Browse files
committed
Merge pull request mongodb#1680 from reatang/v3.3.1-bugfix
Fix bug in version 3.3.1
2 parents e9387fe + 4656b83 commit fca7dae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ The service provider will register a mongodb database extension with the origina
6363
For usage outside Laravel, check out the [Capsule manager](https://github.com/illuminate/database/blob/master/README.md) and add:
6464

6565
```php
66-
$capsule->getDatabaseManager()->extend('mongodb', function($config)
66+
$capsule->getDatabaseManager()->extend('mongodb', function($config, $name)
6767
{
68+
$config['name'] = $name;
69+
6870
return new Jenssegers\Mongodb\Connection($config);
6971
});
7072
```

0 commit comments

Comments
 (0)