1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 02:54:03 +00:00

Begin work on HTTPS

This commit is contained in:
Samuel Štancl 2019-02-01 21:36:48 +01:00
parent 349832c64b
commit aa46cb8e35
10 changed files with 148 additions and 0 deletions

View file

@ -264,4 +264,19 @@ class TenantManager
return $this->put($this->put($key, $value));
}
/**
* Return the identified tenant's attribute(s).
*
* @param string $attribute
* @return mixed
*/
public function __invoke($attribute)
{
if (is_null($attribute)) {
return $this->tenant;
}
return $this->tenant[(string) $attribute];
}
}