1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 16:14:02 +00:00

Revert "remove host connection name config key"

This reverts commit 42acb823e8.
This commit is contained in:
Abrar Ahmad 2022-09-15 10:39:30 +05:00
parent 42acb823e8
commit 5674ce4346
2 changed files with 7 additions and 2 deletions

View file

@ -47,6 +47,11 @@ return [
*/
'template_tenant_connection' => null,
/**
* Tenant host connection name used to create a temporary connection for creating, deleting database
*/
'tenant_host_connection_name' => 'tenant_host_connection',
/**
* Tenant database names are created like this:
* prefix + tenant_id + suffix.

View file

@ -101,9 +101,9 @@ class DatabaseConfig
?? config('tenancy.database.central_connection');
}
public function getTenantHostConnectionName(): string
public function getTenantHostConnectionName(): ?string
{
return 'tenant_host_connection';
return config('tenancy.database.tenant_host_connection_name');
}
/**