verificationUrl = $verificationUrl; } /** * 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 { $appName = config('app.name', 'Project Jahit'); return (new MailMessage) ->subject('Verifikasi Email - ' . $appName) ->view('emails.verify-email', [ 'url' => $this->verificationUrl, 'name' => $notifiable->name, 'appName' => $appName, 'expiresIn' => '60 menit' ]); } /** * Get the array representation of the notification. * * @return array */ public function toArray(object $notifiable): array { return [ 'verification_url' => $this->verificationUrl, ]; } }