Skip to content

Roles not assigned? #1828

Answered by DevTiago
DevTiago asked this question in Q&A
Aug 25, 2021 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

@devkuros be careful with uppercase letters, the role 'Customer' could not be the same as the role 'customer'.

My problem was solved: on table 'model_has_roles' the model_type field was App\User but i've updated my project to Laravel 8 and the models are now on a Models folder. So, the model_type has to be App\Models\User so the relation could exist.

Thanks for your time!

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@erikn69
Comment options

Comment options

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