mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:34:03 +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;
|
||||
}
|
||||
|
||||
if ($this->initialized) {
|
||||
$this->end();
|
||||
}
|
||||
|
||||
$this->tenant = $tenant;
|
||||
|
||||
event(new Events\InitializingTenancy($this));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue