1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 10:54:04 +00:00

remove host connection name config key

This commit is contained in:
Abrar Ahmad 2022-09-14 14:29:07 +05:00
parent e6d703eee4
commit 42acb823e8
2 changed files with 2 additions and 7 deletions

View file

@ -47,11 +47,6 @@ 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 config('tenancy.database.tenant_host_connection_name');
return 'tenant_host_connection';
}
/**