Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to get the role a user has? #45

Closed
Deagarys opened this issue May 8, 2019 · 3 comments
Closed

Is there a way to get the role a user has? #45

Deagarys opened this issue May 8, 2019 · 3 comments

Comments

@Deagarys
Copy link

Deagarys commented May 8, 2019

I'm creating a table with all the users and i need to know what role each users has. Is there a way to achieve this?

@Deagarys
Copy link
Author

Deagarys commented May 8, 2019

I've achieved this by using:
$user->roles->first()['name']
Is there any faster way?

@Deagarys
Copy link
Author

Deagarys commented May 8, 2019

Thanks for your help and fast reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants