Skip to content

Tag: authentication

Roles and permissions in php

I am making a menu, but I want to limit it to only some users with a specific permission can see it. the query: SELECT idpermission,userid FROM user_permissions WHERE userid = “U001” Result: User …

Laravel class not being found in a model

I am trying to get my project to use authorization roles to restrict users to certain featuers and I am following along with a tutorial. When I make a call to a class in my user.php file I am getting an error that the class AppRole can’t be found. I am not sure if it is a namespace issue but