This commit is contained in:
Toby Zerner 2018-12-04 08:54:33 +10:30
parent d399c38b96
commit 93531c6636

View File

@ -27,7 +27,7 @@ class DatabaseServiceProvider extends AbstractServiceProvider
$dbConfig = $this->app->config('database'); $dbConfig = $this->app->config('database');
$dbConfig['engine'] = 'InnoDB'; $dbConfig['engine'] = 'InnoDB';
$connection = $factory->make($this->app->config('database')); $connection = $factory->make($dbConfig);
$connection->setEventDispatcher($this->app->make('Illuminate\Contracts\Events\Dispatcher')); $connection->setEventDispatcher($this->app->make('Illuminate\Contracts\Events\Dispatcher'));
return $connection; return $connection;