Fix a few things in docs

This commit is contained in:
Samuel Štancl 2020-06-13 11:52:10 +02:00
parent 42e2c51343
commit 072eb36494
11 changed files with 49 additions and 17 deletions

View file

@ -29,8 +29,8 @@ mv database/migrations/*_create_permission_tables.php database/migrations/tenant
Then add this to your `AppServiceProvider::boot()` method:
```php
Event::listen(TenancyBootstrapped::class, function (Tenancy $tenancy) {
\Spatie\Permission\PermissionRegistrar::$cacheKey = 'spatie.permission.cache.tenant.' . $tenancy->tenant->id;
Event::listen(TenancyBootstrapped::class, function (TenancyBootstrapped $event) {
\Spatie\Permission\PermissionRegistrar::$cacheKey = 'spatie.permission.cache.tenant.' . $event->tenancy->tenant->id;
});
```