From b7045c52d8f93cdf627ae660bf87381e03cfb080 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Mon, 8 Jun 2026 10:18:51 +0200 Subject: [PATCH] Rename harden() to verifyTenantCanUseDatabase() --- src/Bootstrappers/DatabaseTenancyBootstrapper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bootstrappers/DatabaseTenancyBootstrapper.php b/src/Bootstrappers/DatabaseTenancyBootstrapper.php index 08ea5a74..e731fea5 100644 --- a/src/Bootstrappers/DatabaseTenancyBootstrapper.php +++ b/src/Bootstrappers/DatabaseTenancyBootstrapper.php @@ -59,7 +59,7 @@ class DatabaseTenancyBootstrapper implements TenancyBootstrapper if (static::$harden) { try { - $this->harden($tenant); + $this->verifyTenantCanUseDatabase($tenant); } catch (Throwable $e) { // Revert connection back to central $this->revert(); @@ -74,7 +74,7 @@ class DatabaseTenancyBootstrapper implements TenancyBootstrapper $this->database->reconnectToCentral(); } - protected function harden(Tenant $tenant): void + protected function verifyTenantCanUseDatabase(Tenant $tenant): void { /** @var \Stancl\Tenancy\Database\Models\Tenant $tenant */ $dbName = DB::getDatabaseName();