*/ public function via(object $notifiable): array { return ['mail']; } public function toMail(object $notifiable): MailMessage { return (new MailMessage) ->subject('Nouveau participant sur '.$this->hunt->title) ->view('mail.hunts.joined-hunt', [ 'notifiable' => $notifiable, 'hunt' => $this->hunt, 'participant' => $this->participant, 'participantsCount' => $this->hunt->participants()->count(), ]); } }