1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-06-20 22:54:05 +00:00

Rename harden() to verifyTenantCanUseDatabase()

This commit is contained in:
lukinovec 2026-06-08 10:18:51 +02:00
parent 42a2c8efd9
commit b7045c52d8

View file

@ -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();