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

Improved documentation with Spatie\Permissions #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
23 changes: 23 additions & 0 deletions docs/hyn/5.4/cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,26 @@ allows you to set a custom cache driver in `config/cache.php`:

> Make sure the CacheServiceProvider is registered in `config/app.php` or else your driver will
not be available for use.

If you are using Spatie\Permission package and receive error about driver `redis_tenancy` is not supported,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spatie/laravel-permission please :)

you need to turn off Laravel's package auto discovery for the package. This way you can set the load order and
ensure that Spatie permissions is loaded after redis_tenancy driver has been added.

You can do this by adding don't discover to your composer.json file
```
"extra": {
"laravel":
"dont-discover": [
"spatie/laravel-permission"
]
}
}
```
Lastly make sure you load up the `PermissionServiceProvider` after your `AppServiceProvider` in `config/app.php`

```
App\Providers\AppServiceProvider::class,
...
Spatie\Permission\PermissionServiceProvider::class,
```