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:
parent
c252e0c405
commit
b95b6cadca
2 changed files with 52 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue