Open Dito-Orkodashvili opened 8 years ago
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
$user->roles()
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?