diff --git a/src/Exceptions/DomainsOccupiedByOtherTenantException.php b/src/Exceptions/DomainsOccupiedByOtherTenantException.php index 3c7be5fd..f6d59bda 100644 --- a/src/Exceptions/DomainsOccupiedByOtherTenantException.php +++ b/src/Exceptions/DomainsOccupiedByOtherTenantException.php @@ -6,7 +6,7 @@ namespace Stancl\Tenancy\Exceptions; use Stancl\Tenancy\Contracts\TenantCannotBeCreatedException; -class DomainOccupiedByOtherTenantException extends TenantCannotBeCreatedException +class DomainsOccupiedByOtherTenantException extends TenantCannotBeCreatedException { public function reason(): string { diff --git a/src/Exceptions/TenantStorageException.php b/src/Exceptions/TenantStorageException.php index 5e4a084d..ea152d3f 100644 --- a/src/Exceptions/TenantStorageException.php +++ b/src/Exceptions/TenantStorageException.php @@ -1,6 +1,9 @@ tenant(); + return Tenants::find($tenant->id)->get($key); } public function getMany(array $keys, Tenant $tenant = null): array { $tenant = $tenant ?? $this->tenant(); + return Tenants::find($tenant->id)->getMany($keys); }