patientId = $patientId; } /** * Get the notification's delivery channels. * * @return array */ public function via(object $notifiable): array { return ['mail']; } /** * Get the mail representation of the notification. */ public function toMail(object $notifiable): MailMessage { $patient = Patient::findOrFail($this->patientId); echo "email sent"; return (new MailMessage) ->subject('Complete Your Registration') ->greeting('Dear ' . $patient->name) ->line('This is a friendly reminder to complete your registration process.') ->action('Complete Registration', url('/registration/' . $this->patientId)) ->line('Thank you for using our application!'); } /** * Get the array representation of the notification. * * @return array */ public function toArray(object $notifiable): array { return [ // ]; } }