1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 09:34:04 +00:00

End tenancy before initializing again

This commit is contained in:
Samuel Štancl 2020-07-20 14:30:43 +02:00
parent aee2a2e567
commit 9eb4bfbdc8

View file

@ -29,6 +29,10 @@ class Tenancy
return;
}
if ($this->initialized) {
$this->end();
}
$this->tenant = $tenant;
event(new Events\InitializingTenancy($this));