/** * Execute the job. * * @return void */ public function handle(TourRepository $repository) { return $repository->updateTour($this->id, $this->data); }
/** * Execute the job. * * @return void */ public function handle(TourRepository $tourRepository) { $tour = $tourRepository->updateTour($this->tourId, ['banner' => $this->banner]); $tourRepository->syncPhotos($tour, $this->photoIds); return $tour; }