interface TenantWithDatabase implements Tenant (View source)

Methods

string
getTenantKeyName()

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

from  Tenant
int|string
getTenantKey()

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

from  Tenant
mixed
getInternal(string $key)

Get an internal key.

setInternal(string $key, mixed $value)

Set internal key.

mixed
run(Closure $callback)

Run a callback in this tenant's environment.

from  Tenant
database()

Get the tenant's database config.

static string
internalPrefix()

Get the internal prefix.

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 an internal key.

Parameters

string $key

Return Value

mixed

Tenant setInternal(string $key, mixed $value)

Set 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

DatabaseConfig database()

Get the tenant's database config.

Return Value

DatabaseConfig

static string internalPrefix()

Get the internal prefix.

Return Value

string