mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 23:34:03 +00:00
Use getTenantKey() instead of ->id references
This commit is contained in:
parent
d7536ce0af
commit
ac58f6992b
8 changed files with 15 additions and 15 deletions
|
|
@ -37,7 +37,7 @@ class DatabaseConfig
|
|||
};
|
||||
|
||||
static::$databaseNameGenerator = static::$databaseNameGenerator ?? function (Tenant $tenant) {
|
||||
return config('tenancy.database.prefix') . $tenant->id . config('tenancy.database.suffix');
|
||||
return config('tenancy.database.prefix') . $tenant->getTenantKey() . config('tenancy.database.suffix');
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue