Skip to content

"Class \"App\\Models\\Role\" not found" #2390

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

You must be logged in to vote

In object-oriented programming such as Laravel, anytime you are referring to a model you need to either have/create that model in the current namespace, or specify the namespace of the model which you are calling. In your situation you probably meant to use \Spatie\Permission\Models\Role

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
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
3 participants