roles icon indicating copy to clipboard operation
roles copied to clipboard

get user's role in blade view

Open Dito-Orkodashvili opened this issue 8 years ago • 1 comments

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?

Dito-Orkodashvili avatar Apr 26 '16 10:04 Dito-Orkodashvili

if you inserted the trait, it should be something like $user->roles() Check: HasRoleAndPermission

Isfirs avatar May 04 '16 07:05 Isfirs