mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 10:14:04 +00:00
Rollback
This commit is contained in:
parent
cfa9514dfb
commit
64e297e471
1 changed files with 3 additions and 2 deletions
|
|
@ -130,11 +130,12 @@ class TenantManager
|
|||
/**
|
||||
* Find tenant by domain & initialize tenancy.
|
||||
*
|
||||
* @param string $domain
|
||||
* @param string|null $domain
|
||||
* @return self
|
||||
*/
|
||||
public function init(string $domain): self
|
||||
public function init(string $domain = null): self
|
||||
{
|
||||
$domain = $domain ?? request()->getHost();
|
||||
$this->initializeTenancy($this->findByDomain($domain));
|
||||
|
||||
return $this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue