Hey guys!
I just upgraded the package to the most recent that was pushed a day ago that included the caching capabilities with the Permission model. Is there a way to turn this off? It's causing issue when I do a permission update. I have to run a php artisan cache:clear every time I change a role's permission.
Thanks!
P.S. This package has saved me. Thanks! :D
You can run
app(\Spatie\PermissionPermissionRegistrar::class)->forgetCachedPermissions();
to forget all cached permissions.
Most helpful comment
You can run
to forget all cached permissions.