From d20e0740a70f4a8159b9c7e5e2b5ca16bfcfa9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sun, 3 May 2020 17:46:13 +0200 Subject: [PATCH] Fix facade test --- src/Facades/Tenant.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Facades/Tenant.php b/src/Facades/Tenant.php index 8f331006..6cfd05c8 100644 --- a/src/Facades/Tenant.php +++ b/src/Facades/Tenant.php @@ -5,16 +5,17 @@ declare(strict_types=1); namespace Stancl\Tenancy\Facades; use Illuminate\Support\Facades\Facade; +use Stancl\Tenancy\Tenant as TenantObject; class Tenant extends Facade { protected static function getFacadeAccessor() { - return Tenant::class; + return TenantObject::class; } - public static function create($domains, array $data = []): \Stancl\Tenancy\Tenant + public static function create($domains, array $data = []): TenantObject { - return Tenant::create($domains, $data); + return TenantObject::create($domains, $data); } }