/** * @param Post $post * @param array $tags */ private function SyncTags(Post $post, array $tags) { $post->tags()->sync($tags); }