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 3d05515 commit 6d395f8Copy full SHA for 6d395f8
src/Facades/SqlEntity.php
@@ -0,0 +1,19 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace CalebDW\SqlEntities\Facades;
6
7
+use CalebDW\SqlEntities\EntityManager;
8
+use Illuminate\Support\Facades\Facade;
9
+use Override;
10
11
+/** @mixin EntityManager */
12
+class SqlEntity extends Facade
13
+{
14
+ #[Override]
15
+ protected static function getFacadeAccessor(): string
16
+ {
17
+ return EntityManager::class;
18
+ }
19
+}
tests/Feature/Facades/SqlEntityTest.php
@@ -0,0 +1,10 @@
+use CalebDW\SqlEntities\Facades\SqlEntity;
+it('is a facade', function () {
+ expect(SqlEntity::getFacadeRoot())->toBeInstanceOf(EntityManager::class);
+});
0 commit comments