*/ public function via(object $notifiable): array { $channels = []; $notifiable->extra_attributes?->get('smtp_host') && $channels[] = EmailChannel::class; return $channels; } /** * Get the mail representation of the notification. */ public function toMail(object $notifiable): MailMessage { $mail = new MailMessage(); $mail->subject('Coolify Test Notification'); $mail->view('emails.test-email'); return $mail; } public function toArray(object $notifiable): array { return [ // ]; } }