diff --git a/docs/advanced-usage/listening-for-events.md b/docs/advanced-usage/listening-for-events.md index 3e113a9..7752d5b 100644 --- a/docs/advanced-usage/listening-for-events.md +++ b/docs/advanced-usage/listening-for-events.md @@ -23,6 +23,6 @@ This event will fire when a tenant is being forgotten. At this point none of [th It has one public property `$tenant`, that contains and instance of `Spatie\Multitenancy\Models\Tenant` -## `\Spatie\Multitenancy\Events\FogotCurrentTenantEvent` +## `\Spatie\Multitenancy\Events\ForgotCurrentTenantEvent` This event will fire when a tenant has been forgotten. At this point the `forgotCurrent` method of all of [the tasks](/laravel-multitenancy/v1/using-tasks-to-prepare-the-environment/overview/) have been executed. `currentTenant` in the container will have been emptied. diff --git a/src/Events/ForgettingCurrentTenantEvent.php b/src/Events/ForgettingCurrentTenantEvent.php index 0cfdc85..a205dc2 100644 --- a/src/Events/ForgettingCurrentTenantEvent.php +++ b/src/Events/ForgettingCurrentTenantEvent.php @@ -6,7 +6,7 @@ class ForgettingCurrentTenantEvent { - protected Tenant $tenant; + public Tenant $tenant; public function __construct(Tenant $tenant) { diff --git a/src/Events/ForgotCurrentTenantEvent.php b/src/Events/ForgotCurrentTenantEvent.php index 0d2d7bb..608e3f9 100644 --- a/src/Events/ForgotCurrentTenantEvent.php +++ b/src/Events/ForgotCurrentTenantEvent.php @@ -6,7 +6,7 @@ class ForgotCurrentTenantEvent { - protected Tenant $tenant; + public Tenant $tenant; public function __construct(Tenant $tenant) { diff --git a/src/Events/MadeTenantCurrentEvent.php b/src/Events/MadeTenantCurrentEvent.php index 0528a46..3777b53 100644 --- a/src/Events/MadeTenantCurrentEvent.php +++ b/src/Events/MadeTenantCurrentEvent.php @@ -6,7 +6,7 @@ class MadeTenantCurrentEvent { - protected Tenant $tenant; + public Tenant $tenant; public function __construct(Tenant $tenant) { diff --git a/src/Events/MakingTenantCurrentEvent.php b/src/Events/MakingTenantCurrentEvent.php index 135573e..a3dcf1a 100644 --- a/src/Events/MakingTenantCurrentEvent.php +++ b/src/Events/MakingTenantCurrentEvent.php @@ -6,7 +6,7 @@ class MakingTenantCurrentEvent { - protected Tenant $tenant; + public Tenant $tenant; public function __construct(Tenant $tenant) {