public function addTagsToArticle(Article $article, array $tags) { $article->tags()->sync($tags); return $article; }