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.
1 parent 2dfca51 commit 632a7feCopy full SHA for 632a7fe
src/ServiceProvider.php
@@ -19,7 +19,7 @@ class ServiceProvider extends IlluminateServiceProvider implements DeferrablePro
19
#[Override]
20
public function provides(): array
21
{
22
- return [EntityManager::class]; // @codeCoverageIgnore
+ return [EntityManager::class, 'sql-entities']; // @codeCoverageIgnore
23
}
24
25
@@ -28,6 +28,8 @@ public function register(): void
28
$this->app->singleton(EntityManager::class, function (Application $app) {
29
return new EntityManager($this->getEntities($app), $app->make('db'));
30
});
31
+
32
+ $this->app->alias(EntityManager::class, 'sql-entities');
33
34
35
/** @return Collection<int, Entity> */
0 commit comments