mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 15:24:04 +00:00
$tenant->run()
This commit is contained in:
parent
f9c9bf088d
commit
c8a6fed3c6
3 changed files with 89 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