You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced-usage/listening-for-events.md
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,20 +9,26 @@ The package fires events where you can listen for to perform some extra logic.
9
9
10
10
This event will fire when a tenant is being made the current one. At this point none of [the tasks](/docs/laravel-multitenancy/v3/using-tasks-to-prepare-the-environment/overview/) have been executed.
11
11
12
-
It has one public property `$tenant`, that contains an instance of `Spatie\Multitenancy\Models\Tenant`
12
+
It has one public property `$tenant`, that contains an instance of `Spatie\Multitenancy\Models\Tenant`.
This event will fire when a tenant has been made the current one. At this point the `makeCurrent` method of all of [the tasks](/docs/laravel-multitenancy/v3/using-tasks-to-prepare-the-environment/overview/) have been executed. The current tenant also have been bound as `currentTenant` in the container.
17
17
18
-
It has one public property `$tenant`, that contains an instance of `Spatie\Multitenancy\Models\Tenant`
18
+
It has one public property `$tenant`, that contains an instance of `Spatie\Multitenancy\Models\Tenant`.
This event will fire when a tenant is being forgotten. At this point none of [the tasks](/docs/laravel-multitenancy/v3/using-tasks-to-prepare-the-environment/overview/) have been executed.
23
23
24
-
It has one public property `$tenant`, that contains an instance of `Spatie\Multitenancy\Models\Tenant`
24
+
It has one public property `$tenant`, that contains an instance of `Spatie\Multitenancy\Models\Tenant`.
This event will fire when a tenant has been forgotten. At this point the `forgotCurrent` method of all of [the tasks](/docs/laravel-multitenancy/v3/using-tasks-to-prepare-the-environment/overview/) have been executed. `currentTenant` in the container has been emptied.
0 commit comments