interface Tenant mixin Model (View source)

Methods

string
getTenantKeyName()

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

getTenantKey()

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

getInternal(string $key)

Get the value of an internal key.

setInternal(string $key, $value)

Set the value of an internal key.

run(callable $callback)

Run a callback in this tenant's environment.

void
__call(string $method, array $parameters)

IDE support. This will be a model.

static void
__callStatic(string $method, array $parameters)

IDE support. This will be a model.

Details

string getTenantKeyName()

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

Return Value

string

getTenantKey()

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

getInternal(string $key)

Get the value of an internal key.

Parameters

string $key

setInternal(string $key, $value)

Set the value of an internal key.

Parameters

string $key
$value

run(callable $callback)

Run a callback in this tenant's environment.

Parameters

callable $callback

void __call(string $method, array $parameters)

IDE support. This will be a model.

Parameters

string $method
array $parameters

Return Value

void

static void __callStatic(string $method, array $parameters)

IDE support. This will be a model.

Parameters

string $method
array $parameters

Return Value

void