mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:24:02 +00:00
wip
This commit is contained in:
parent
6737172589
commit
dcc7a8a210
1 changed files with 4 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ The following events are available:
|
|||
- `ending`
|
||||
- `ended`
|
||||
|
||||
### Tenant-specific database connection example {#tenant-specific-database-connection-example}
|
||||
|
||||
You can hook into these events using `Tenancy::<eventName>`:
|
||||
```php
|
||||
\Tenancy::boostrapping(function ($tenantManager) {
|
||||
|
|
@ -35,6 +37,8 @@ The following actions can be prevented:
|
|||
- CacheManager switch: `cache`
|
||||
- Filesystem changes: `filesystem`
|
||||
|
||||
### Tenant-specific configuration example {#tenant-specific-configuration-example}
|
||||
|
||||
Another common use case for events is tenant-specific config:
|
||||
```php
|
||||
\Tenancy::bootstrapped(function ($tenantManager) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue