My users groups and roles is still using default from generated database.
I login with user groupid 5 (Administrators) and I have one page that using authentication : \Auth::has_access('backend.post')
When I access the page, I thought that the "has_access" should return false, because I haven't create any permission for administrators, but strangely it returns true.
Now I'm confused with the ORM Authentication, even it's still basic. Please advice me if there's something missing from my method.
In general you only need to flush the cache when you change something.
So: - the roles cache if you modify a role - the groups cache if you modify a group - the user permission cache if you change direct permissions of a user - all user permission caches if you change permissions themselfs, or role or group permissions