Question.php
public function votes()
{
return $this->morphToMany('App\User' , 'votable');
}
User.php
public function voteQuestions()
{
return $this->morphedByMany('App\Answer', 'votable');
}
This shows up:
Call to undefined method Illuminate\Database\Eloquent\Relations\MorphToMany::exits()
And Laravel tells you to:
Did you mean Illuminate\Database\Eloquent\Relations\MorphToMany::get()?