Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Joren Van Hocht authored and Joren Van Hocht committed Aug 17, 2015
2 parents 6d2fdf2 + 8c8f9f2 commit 9e35295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Tag.php
Expand Up @@ -63,7 +63,7 @@ public function validate($tags)

public function post()
{
return $this->belongsToMany('jorenvanhocht\Blogify\Models\post', 'posts_have_tags', 'post_id', 'tag_id');
return $this->belongsToMany('jorenvanhocht\Blogify\Models\post', 'posts_have_tags', 'tag_id', 'post_id');
}

}
}

0 comments on commit 9e35295

Please sign in to comment.