mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
add Events\ namespace
This commit is contained in:
parent
cbe366a095
commit
1b92787911
1 changed files with 2 additions and 2 deletions
|
|
@ -33,13 +33,13 @@ Next, add the following listeners to the `TenancyBootstrapped` and `TenancyEnde
|
||||||
|
|
||||||
```php
|
```php
|
||||||
Events\TenancyBootstrapped::class => [
|
Events\TenancyBootstrapped::class => [
|
||||||
function (TenancyBootstrapped $event) {
|
function (Events\TenancyBootstrapped $event) {
|
||||||
\Spatie\Permission\PermissionRegistrar::$cacheKey = 'spatie.permission.cache.tenant.' . $event->tenancy->tenant->id;
|
\Spatie\Permission\PermissionRegistrar::$cacheKey = 'spatie.permission.cache.tenant.' . $event->tenancy->tenant->id;
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
Events\TenancyEnded::class => [
|
Events\TenancyEnded::class => [
|
||||||
function (TenancyEnded $event) {
|
function (Events\TenancyEnded $event) {
|
||||||
\Spatie\Permission\PermissionRegistrar::$cacheKey = 'spatie.permission.cache';
|
\Spatie\Permission\PermissionRegistrar::$cacheKey = 'spatie.permission.cache';
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue