Can you tell me how to get roles name from users model?
Thanks before.
You can pluck them from the roles.
$user->roles->pluck('name');
Since v2.5.1 you can use $user->getRoleNames(), which returns a collection of role names associated with that user.
And then you can access that collection using all the normal collection methods.
Can you tell me how to get roles name from Auth User while loing
Thanks before.
Most helpful comment
You can
pluckthem from the roles.