* @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass */ public function via(object $notifiable): array { // phpcs:enable return ['mail']; } /** * Get the mail representation of the notification. * * @param object $notifiable * @return \Illuminate\Contracts\Mail\Mailable */ public function toMail(object $notifiable): Mailable { /** @var \App\Models\Settings */ $settings = app(Settings::class); /** @var \App\Models\Customer $notifiable */ return (new WinningProofSubmitedMail( new Address( $notifiable->email, $this->first_name, ), $settings->name, $settings->company, )); } }