Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

derrickrozay's avatar

Any tutorials on how to implement Roles and Permissions with Laravel Passport?

I cant seem to find any tutorials that show how to implement roles and permissions with Laravel Passport

0 likes
3 replies
neeonline's avatar

I remember that this video helped me a lot: https://laracasts.com/lessons/users-and-roles

Using this method, once your API handles the authorization, you will have access to the current user, then just do:

Auth::user()->hasRole('admin') and/or Auth::user()->can('manage_the_forum');

Please or to participate in this conversation.