prize = $prize->withoutRelations(); } /** * Get the notification's delivery channels. * * @return array * * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass */ public function via(object $notifiable): array { // phpcs:enable return ['mail']; } /** * Get the mail representation of the notification. */ public function toMail(object $notifiable): Mailable { /** @var Settings */ $settings = resolve(Settings::class); /** @var Customer $notifiable */ return new PrizeWonMail( new Address( $notifiable->email, $this->first_name ), $settings->name, $this->prize, config('app.url'), $settings->company, ); } }