Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One type and setting event's tenant prop to public #16

Merged
merged 5 commits into from
May 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/advanced-usage/listening-for-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion src/Events/ForgettingCurrentTenantEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class ForgettingCurrentTenantEvent
{
protected Tenant $tenant;
public Tenant $tenant;

public function __construct(Tenant $tenant)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Events/ForgotCurrentTenantEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class ForgotCurrentTenantEvent
{
protected Tenant $tenant;
public Tenant $tenant;

public function __construct(Tenant $tenant)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Events/MadeTenantCurrentEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class MadeTenantCurrentEvent
{
protected Tenant $tenant;
public Tenant $tenant;

public function __construct(Tenant $tenant)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Events/MakingTenantCurrentEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class MakingTenantCurrentEvent
{
protected Tenant $tenant;
public Tenant $tenant;

public function __construct(Tenant $tenant)
{
Expand Down