Merge branch 'master' of github.com:stancl/tenancy-docs

This commit is contained in:
Samuel Štancl 2019-09-30 18:56:21 +02:00
commit ebebb21809
12 changed files with 50 additions and 35 deletions

View file

@ -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']);
});
```
```