private function syncCategory(Article $article, array $ArticleCategoryList) { $article->ArticleCategories()->sync($ArticleCategoryList); }