1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 21:54:02 +00:00

tenancy_db_connection tenant config test

This commit is contained in:
Abrar Ahmad 2022-10-20 12:37:08 +05:00
parent c252e0c405
commit b95b6cadca
2 changed files with 52 additions and 2 deletions

View file

@ -132,8 +132,9 @@ class DatabaseConfig
if ($this->manager() instanceof Contracts\ManagesDatabaseUsers) {
// We're removing the username and password because user with these credentials is not created yet
unset($config['username']);
unset($config['password']);
// If you need to provide username and password when using PermissionControlledMySQLDatabaseManager,
// consider creating a new connection and use it as `tenancy_db_connection` tenant config key
unset($config['username'], $config['password']);
}
if (! $config) {