Skip to content

Pivot model can't have belongsToMany other model #32987

Answered by TutanRamon
TutanRamon asked this question in General
Discussion options

You must be logged in to vote

Ok, I solved it.
I just changed
class ArticleSite extends Pivot

to
class ArticleSite extends Model

Feels kind of odd though...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TutanRamon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #32987 on May 27, 2020 13:54.