Skip to content

Call to undefined method App\Models\User::hasRole() #1742

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

You must be logged in to vote

Must add the HasRoles trait to your User model, as described in the documentation:
https://spatie.be/docs/laravel-permission/v4/basic-usage/basic-usage

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by drbyte
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