Closed makss closed 6 months ago
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');
Now, to reset the cache, the recommendation of the developers of the laravel-permission package was used.
Totally, makes sense.
Thanks @makss 🙏
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.
AFTER - What is happening after this PR?
Now, to reset the cache, the recommendation of the developers of the laravel-permission package was used.