Santiago Garcia



Laravel artisan, scuba diver, and full-stack developer. Crafting code and exploring depths.

1 Answer Joined Mar 2024

/ 255

Hello Santiago. I am using the Laratrust package in my local project. I have created roles, permissions and assigned different permissions to each role. Assigned roles to users. Question, how to check the permissions of an authorized user role?

If you want to check roles you can do this:

If you want to check permissions you can do this:

For more information, please check this out