mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 20:54:03 +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`
|
- `ending`
|
||||||
- `ended`
|
- `ended`
|
||||||
|
|
||||||
|
### Tenant-specific database connection example {#tenant-specific-database-connection-example}
|
||||||
|
|
||||||
You can hook into these events using `Tenancy::<eventName>`:
|
You can hook into these events using `Tenancy::<eventName>`:
|
||||||
```php
|
```php
|
||||||
\Tenancy::boostrapping(function ($tenantManager) {
|
\Tenancy::boostrapping(function ($tenantManager) {
|
||||||
|
|
@ -35,6 +37,8 @@ The following actions can be prevented:
|
||||||
- CacheManager switch: `cache`
|
- CacheManager switch: `cache`
|
||||||
- Filesystem changes: `filesystem`
|
- Filesystem changes: `filesystem`
|
||||||
|
|
||||||
|
### Tenant-specific configuration example {#tenant-specific-configuration-example}
|
||||||
|
|
||||||
Another common use case for events is tenant-specific config:
|
Another common use case for events is tenant-specific config:
|
||||||
```php
|
```php
|
||||||
\Tenancy::bootstrapped(function ($tenantManager) {
|
\Tenancy::bootstrapped(function ($tenantManager) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue