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 27b5206 + f39c67a commit 96be808Copy full SHA for 96be808
src/Jenssegers/Mongodb/MongodbServiceProvider.php
@@ -25,9 +25,11 @@ public function boot()
25
public function register()
26
{
27
// Add a mongodb extension to the original database manager
28
- $this->app['db']->extend('mongodb', function($config)
29
- {
30
- return new Connection($config);
+ $this->app->resolving('db', function($db) {
+ $db->extend('mongodb', function($config)
+ {
31
+ return new Connection($config);
32
+ });
33
});
34
}
35
0 commit comments