Commit 4d0b5b73 authored by Jens Segers's avatar Jens Segers

Fixes #1006

parent 883037cd
......@@ -23,7 +23,8 @@ class MongodbServiceProvider extends ServiceProvider
{
// Add database driver.
$this->app->resolving('db', function ($db) {
$db->extend('mongodb', function ($config) {
$db->extend('mongodb', function ($config, $name) {
$config['name'] = $name;
return new 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