/** * Execute the command. * * @param RestaurantLocationsRepository|ExperiencesRepository $repository * @param Product $product * @return array */ public function handle(ExperiencesRepository $repository, Product $product) { $experience = $product->add($this->vendor_id, $this->product_type_id, $this->name, $this->slug, $this->status, $this->restaurant_locations, $this->short_description, $this->description, $this->seo_title, $this->seo_meta_description, $this->seo_meta_keywords, $this->main_image, $this->listing_image, $this->gallery_images, $this->min_people_per_reservation, $this->max_people_per_reservation, $this->max_reservation_per_time_slot, $this->max_reservation_per_day, $this->min_reservation_time_buffer, $this->max_reservation_time_buffer, $this->commision_per_reservation, $this->prepayment, $this->reward_points_per_reservation, $this->tax, $this->price_before_tax, $this->price_after_tax, $this->price_type, $this->commission_calculated_on, $this->addons, $this->allow_gift_card_redemption, $this->allow_cancellations, $this->terms_conditions, $this->publish_date, $this->publish_time); $response = $repository->add($experience); //event(new NewUserWasRegistered($this->email,$this->full_name)); return $response; }