diff --git a/src/UmbrellioPostgresProvider.php b/src/UmbrellioPostgresProvider.php index fcfc6e5..247a30f 100644 --- a/src/UmbrellioPostgresProvider.php +++ b/src/UmbrellioPostgresProvider.php @@ -37,6 +37,9 @@ public function boot() self::registerExtensions(); } + /** + * @codeCoverageIgnore + */ protected function registerConnectionServices(): void { $this->app->singleton('db.factory', function ($app) { @@ -46,6 +49,10 @@ protected function registerConnectionServices(): void $this->app->singleton('db', function ($app) { return new DatabaseManager($app, $app['db.factory']); }); + + $this->app->bind('db.connection', function ($app) { + return $app['db']->connection(); + }); } /**