DatabaseConfig
class DatabaseConfig (View source)
Properties
TenantWithDatabase|Model | $tenant | ||
static callable | $usernameGenerator | ||
static callable | $passwordGenerator | ||
static callable | $databaseNameGenerator |
Methods
No description
No description
No description
No description
No description
No description
No description
Generate DB name, username & password and write them to the tenant model.
No description
Tenant's own database connection config.
Additional config for the database connection, specific to this tenant.
Get the TenantDatabaseManager for this tenant's connection.
Details
static void
__constructStatic()
No description
__construct(TenantWithDatabase $tenant)
No description
static void
generateDatabaseNamesUsing(callable $databaseNameGenerator)
No description
static void
generateUsernamesUsing(callable $usernameGenerator)
No description
static void
generatePasswordsUsing(callable $passwordGenerator)
No description
string|null
getName()
No description
string|null
getUsername()
No description
string|null
getPassword()
No description
void
makeCredentials()
Generate DB name, username & password and write them to the tenant model.
string
getTemplateConnectionName()
No description
array
connection()
Tenant's own database connection config.
array
tenantConfig()
Additional config for the database connection, specific to this tenant.
TenantDatabaseManager
manager()
Get the TenantDatabaseManager for this tenant's connection.