add Events\ namespace

This commit is contained in:
Samuel Štancl 2022-11-15 15:57:21 +01:00 committed by GitHub
parent cbe366a095
commit 1b92787911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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';
} }
], ],