public function syncActivities(Tour $tour, array $activityIds) { $tour->activities()->sync($activityIds); }