roles
roles copied to clipboard
get user's role in blade view
Hi, I am creating user's table. one column is for the current role of the user. when I do this $user->getRoles(); it gives me json object. I need to display just a slug. How can I do that?
if you inserted the trait, it should be something like $user->roles()
Check: HasRoleAndPermission