TenantWithDatabase
interface TenantWithDatabase implements Tenant (View source)
Methods
mixed
getInternal(string $key)
Get an internal key.
setInternal(string $key, mixed $value)
Set internal key.
database()
Get the tenant's database config.
static string
internalPrefix()
Get the internal prefix.
Details
in
Tenant at line 17
string
getTenantKeyName()
Get the name of the key used for identifying the tenant.
in
Tenant at line 20
int|string
getTenantKey()
Get the value of the key used for identifying the tenant.
mixed
getInternal(string $key)
Get an internal key.
Tenant
setInternal(string $key, mixed $value)
Set internal key.
in
Tenant at line 29
mixed
run(Closure $callback)
Run a callback in this tenant's environment.
DatabaseConfig
database()
Get the tenant's database config.
static string
internalPrefix()
Get the internal prefix.