mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:24:03 +00:00
Updated comment
This commit is contained in:
parent
6028e70b98
commit
7bcad47186
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ final class DatabaseManager
|
||||||
|
|
||||||
public function createTenantConnection(string $database_name)
|
public function createTenantConnection(string $database_name)
|
||||||
{
|
{
|
||||||
// Create the `tenancy` database connection.
|
// Create the `tenant` database connection.
|
||||||
$based_on = config('tenancy.database.based_on') ?: config('database.default');
|
$based_on = config('tenancy.database.based_on') ?: config('database.default');
|
||||||
config()->set([
|
config()->set([
|
||||||
'database.connections.tenant' => config('database.connections.' . $based_on),
|
'database.connections.tenant' => config('database.connections.' . $based_on),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue