Skip to content

Commit fd84d84

Browse files
authored
One type and setting event's tenant prop to public (#16)
* Typo * Make Tenant public * Make Tenant public * Make Tenant public * Make Tenant public
1 parent e50f583 commit fd84d84

5 files changed

+5
-5
lines changed

docs/advanced-usage/listening-for-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ This event will fire when a tenant is being forgotten. At this point none of [th
2323

2424
It has one public property `$tenant`, that contains and instance of `Spatie\Multitenancy\Models\Tenant`
2525

26-
## `\Spatie\Multitenancy\Events\FogotCurrentTenantEvent`
26+
## `\Spatie\Multitenancy\Events\ForgotCurrentTenantEvent`
2727

2828
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.

src/Events/ForgettingCurrentTenantEvent.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class ForgettingCurrentTenantEvent
88
{
9-
protected Tenant $tenant;
9+
public Tenant $tenant;
1010

1111
public function __construct(Tenant $tenant)
1212
{

src/Events/ForgotCurrentTenantEvent.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class ForgotCurrentTenantEvent
88
{
9-
protected Tenant $tenant;
9+
public Tenant $tenant;
1010

1111
public function __construct(Tenant $tenant)
1212
{

src/Events/MadeTenantCurrentEvent.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class MadeTenantCurrentEvent
88
{
9-
protected Tenant $tenant;
9+
public Tenant $tenant;
1010

1111
public function __construct(Tenant $tenant)
1212
{

src/Events/MakingTenantCurrentEvent.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class MakingTenantCurrentEvent
88
{
9-
protected Tenant $tenant;
9+
public Tenant $tenant;
1010

1111
public function __construct(Tenant $tenant)
1212
{

0 commit comments

Comments
 (0)