Skip to content

No morph map defined for model [App\Models\User] #2148

Answered by ClemtM
ClemtM asked this question in Q&A
Discussion options

You must be logged in to vote

Ok I got it. The issue was because I used Relation::enforceMorphMap in the AppServiceProvider.

Maybe it will help to know that

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@sergiuastechsoft
Comment options

@Sjoerd24
Comment options

Answer selected by ClemtM
Comment options

You must be logged in to vote
4 replies
@angeljqv
Comment options

@uyson
Comment options

@angeljqv
Comment options

@quyle92
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants