Update event-system.blade.md

This commit is contained in:
Chris Brown 2019-09-23 17:41:36 -04:00 committed by GitHub
parent a1317ae612
commit bc0eda3895
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,11 +7,11 @@ section: content
# The Event System # 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: The following events are available:
- `boostrapping` - `bootstrapping`
- `boostrapped` - `bootstrapped`
- `ending` - `ending`
- `ended` - `ended`
@ -46,4 +46,4 @@ Another common use case for events is tenant-specific config:
\Tenancy::eventListener('bootstrapped', function ($tenantManager) { \Tenancy::eventListener('bootstrapped', function ($tenantManager) {
config(['some.api.key' => $tenantManager->tenant['api_key']); config(['some.api.key' => $tenantManager->tenant['api_key']);
}); });
``` ```