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

Convert domains to lowercase, persist current domain model on resolver

This commit is contained in:
Samuel Štancl 2020-06-28 11:45:08 +02:00
parent cd1381eae9
commit 02e049b59e
6 changed files with 42 additions and 6 deletions

View file

@ -10,6 +10,13 @@ use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedOnDomainException;
class DomainTenantResolver extends Contracts\CachedTenantResolver
{
/**
* The model representing the domain that the tenant was identified on.
*
* @var Domain
*/
public static $currentDomain;
/** @var bool */
public static $shouldCache = false;