Пример #1
0
 public function handle(ReviewCreated $reviewCreated)
 {
     $review = $reviewCreated->getReview();
     $this->reviewManager->refreshRating($review);
     $notifiable = $review->getReviewable();
     if ($notifiable instanceof Product) {
         $notifiable = $notifiable->getSeller();
     }
     $notifiable->notify(new NewReviewNotification($review));
 }