diff --git a/src/Exceptions/TenantCountNotBeIdentifiedById.php b/src/Exceptions/TenantCouldNotBeIdentifiedById.php similarity index 92% rename from src/Exceptions/TenantCountNotBeIdentifiedById.php rename to src/Exceptions/TenantCouldNotBeIdentifiedById.php index 28bde14c..14894376 100644 --- a/src/Exceptions/TenantCountNotBeIdentifiedById.php +++ b/src/Exceptions/TenantCouldNotBeIdentifiedById.php @@ -9,7 +9,7 @@ use Facade\IgnitionContracts\ProvidesSolution; use Facade\IgnitionContracts\Solution; use Stancl\Tenancy\Contracts\TenantCouldNotBeIdentifiedException; -class TenantCountNotBeIdentifiedById extends TenantCouldNotBeIdentifiedException implements ProvidesSolution +class TenantCouldNotBeIdentifiedById extends TenantCouldNotBeIdentifiedException implements ProvidesSolution { public function __construct($tenant_id) { diff --git a/src/Tenancy.php b/src/Tenancy.php index 307f818f..e2f1191c 100644 --- a/src/Tenancy.php +++ b/src/Tenancy.php @@ -9,7 +9,7 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Traits\Macroable; use Stancl\Tenancy\Contracts\TenancyBootstrapper; use Stancl\Tenancy\Contracts\Tenant; -use Stancl\Tenancy\Exceptions\TenantCountNotBeIdentifiedById; +use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedById; class Tenancy { @@ -36,7 +36,7 @@ class Tenancy $tenant = $this->find($tenantId); if (! $tenant) { - throw new TenantCountNotBeIdentifiedById($tenantId); + throw new TenantCouldNotBeIdentifiedById($tenantId); } }