The cache for particular role or permissions which is used in can and hasRole, should be removed when operations like attach and detach is happen. because the new changes need to be cached.
For now im doing this manually on my controllers but it should be in the plugin itself.
The cache for particular role or permissions which is used in
can
andhasRole
, should be removed when operations like attach and detach is happen. because the new changes need to be cached.For now im doing this manually on my controllers but it should be in the plugin itself.