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:
parent
42a2c8efd9
commit
b7045c52d8
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue