/** * Sync up the list of tags in the database. * * @param Torrent $torrent * @param array $tags */ private function syncTags(Movie $movie, array $tags) { $movie->tags()->sync($tags); }