mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:44:04 +00:00
parent
cc74e9f3ca
commit
a1270189da
3 changed files with 94 additions and 0 deletions
|
|
@ -206,6 +206,10 @@ class TenantManager
|
|||
*/
|
||||
public function initializeTenancy(Tenant $tenant): self
|
||||
{
|
||||
if ($this->initialized) {
|
||||
$this->endTenancy();
|
||||
}
|
||||
|
||||
$this->setTenant($tenant);
|
||||
$this->bootstrapTenancy($tenant);
|
||||
$this->initialized = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue