mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
replace ->tenant access with ->getTenant() calls
This commit is contained in:
parent
22324ec158
commit
6cb9deb08e
1 changed files with 3 additions and 3 deletions
|
|
@ -19,8 +19,8 @@ Tenant::new()->withData([
|
||||||
|
|
||||||
// Make tweaks to the connection before bootstrapping tenancy
|
// Make tweaks to the connection before bootstrapping tenancy
|
||||||
tenancy()->hook('bootstrapping', function ($tenantManager) {
|
tenancy()->hook('bootstrapping', function ($tenantManager) {
|
||||||
config(['database.connections.someTenantConnectionTemplate.name' => $tenantManager->tenant['database_name']]);
|
config(['database.connections.someTenantConnectionTemplate.name' => $tenantManager->getTenant('database_name')]);
|
||||||
config(['database.connections.someTenantConnectionTemplate.password' => $tenantManager->tenant['database_password']]);
|
config(['database.connections.someTenantConnectionTemplate.password' => $tenantManager->getTenant('database_password')]);
|
||||||
config(['database.connections.someTenantConnectionTemplate.host' => $tenantManager->tenant['database_host']]);
|
config(['database.connections.someTenantConnectionTemplate.host' => $tenantManager->getTenant('database_host')]);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue