Skip to content

Getting User Role name as an accessor. #2698

Answered by drbyte
Jairus34 asked this question in Q&A
Discussion options

You must be logged in to vote

This package allows more-than-one role to be assigned to a User.
You would need to add your own custom logic to narrow it down to return just one of the User's roles. Perhaps ->first() ?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jairus34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants