interface Tenant mixin Model (View source)

Methods

string
getTenantKeyName()

Get the name of the key used for identifying the tenant.

int|string
getTenantKey()

Get the value of the key used for identifying the tenant.

mixed
getInternal(string $key)

Get the value of an internal key.

setInternal(string $key, mixed $value)

Set the value of an internal key.

mixed
run(Closure $callback)

Run a callback in this tenant's environment.

Details

string getTenantKeyName()

Get the name of the key used for identifying the tenant.

Return Value

string

int|string getTenantKey()

Get the value of the key used for identifying the tenant.

Return Value

int|string

mixed getInternal(string $key)

Get the value of an internal key.

Parameters

string $key

Return Value

mixed

Tenant setInternal(string $key, mixed $value)

Set the value of an internal key.

Parameters

string $key
mixed $value

Return Value

Tenant

mixed run(Closure $callback)

Run a callback in this tenant's environment.

Parameters

Closure $callback

Return Value

mixed