mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Merge branch 'master' of github.com:stancl/tenancy-docs
This commit is contained in:
commit
ebebb21809
12 changed files with 50 additions and 35 deletions
|
|
@ -7,11 +7,11 @@ section: content
|
|||
|
||||
# The Event System
|
||||
|
||||
You can use event hooks to change the behavior of the tenancy boostrapping and tenancy ending processes.
|
||||
You can use event hooks to change the behavior of the tenancy bootstrapping and tenancy ending processes.
|
||||
|
||||
The following events are available:
|
||||
- `boostrapping`
|
||||
- `boostrapped`
|
||||
- `bootstrapping`
|
||||
- `bootstrapped`
|
||||
- `ending`
|
||||
- `ended`
|
||||
|
||||
|
|
@ -46,4 +46,4 @@ Another common use case for events is tenant-specific config:
|
|||
\Tenancy::eventListener('bootstrapped', function ($tenantManager) {
|
||||
config(['some.api.key' => $tenantManager->tenant['api_key']);
|
||||
});
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue