interface TenantWithDatabase implements Tenant (View source)

Methods

string
getTenantKeyName()

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

from  Tenant
getTenantKey()

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

from  Tenant
getInternal(string $key)

Get an internal key.

setInternal(string $key, $value)

Set the value of an internal key.

from  Tenant
run(callable $callback)

Run a callback in this tenant's environment.

from  Tenant
void
__call(string $method, array $parameters)

IDE support. This will be a model.

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

IDE support. This will be a model.

from  Tenant
database()

No description

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 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

DatabaseConfig database()

No description

Return Value

DatabaseConfig