Laravel-Backpack / PermissionManager

Admin interface for managing users, roles, permissions, using Backpack CRUD
http://backpackforlaravel.com
Other
527 stars 168 forks source link

Fix reset cache #358

Closed makss closed 6 months ago

makss commented 6 months ago

WHY

The laravel-permission package uses the caching key that is specified in the config and which can be changed.

But PermissionManager resets the cache directly using the hard-coded key.

\Cache::forget('spatie.permission.cache');

AFTER - What is happening after this PR?

Now, to reset the cache, the recommendation of the developers of the laravel-permission package was used.

pxpm commented 6 months ago

Totally, makes sense.

Thanks @makss 🙏