From dcc7a8a210174f6255faea078030098a505bfc37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Tue, 20 Aug 2019 13:49:41 +0200 Subject: [PATCH] wip --- source/docs/event-system.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/docs/event-system.md b/source/docs/event-system.md index 55b4c2ee..f3524623 100644 --- a/source/docs/event-system.md +++ b/source/docs/event-system.md @@ -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::`: ```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) {