mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 16:24:04 +00:00
End tenancy before initializing again
This commit is contained in:
parent
aee2a2e567
commit
9eb4bfbdc8
1 changed files with 4 additions and 0 deletions
|
|
@ -29,6 +29,10 @@ class Tenancy
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->initialized) {
|
||||||
|
$this->end();
|
||||||
|
}
|
||||||
|
|
||||||
$this->tenant = $tenant;
|
$this->tenant = $tenant;
|
||||||
|
|
||||||
event(new Events\InitializingTenancy($this));
|
event(new Events\InitializingTenancy($this));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue