Skip to content

Commit 4f999ba

Browse files
authored
Merge pull request #1680 from reatang/v3.3.1-bugfix
Fix bug in version 3.3.1
2 parents fe70309 + 317369c commit 4f999ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
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)