class InitializeTenancyBySubdomain extends InitializeTenancyByDomain (View source)

Properties

static Closure|null $onFail
Tenancy $tenancy from  IdentificationMiddleware
TenantResolver $resolver from  IdentificationMiddleware
static int $subdomainIndex

The index of the subdomain fragment in the hostname split by .. 0 for first fragment, 1 if you prefix your subdomain fragments with www.

Methods

mixed
initializeTenancy(Request $request, Closure $next, mixed ...$resolverArguments)

No description

__construct(Tenancy $tenancy, DomainTenantResolver $resolver)

No description

mixed
handle(Request $request, Closure $next)

No description

string|Response|Exception|mixed
makeSubdomain(string $hostname)

No description

Details

mixed initializeTenancy(Request $request, Closure $next, mixed ...$resolverArguments)

No description

Parameters

Request $request
Closure $next
mixed ...$resolverArguments

Return Value

mixed

__construct(Tenancy $tenancy, DomainTenantResolver $resolver)

No description

Parameters

Tenancy $tenancy
DomainTenantResolver $resolver

mixed handle(Request $request, Closure $next)

No description

Parameters

Request $request
Closure $next

Return Value

mixed

protected string|Response|Exception|mixed makeSubdomain(string $hostname)

No description

Parameters

string $hostname

Return Value

string|Response|Exception|mixed