pin = $pin; } /** * 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('Reset Password - ' . $appName) ->view('emails.reset-password', [ 'pin' => $this->pin, 'name' => $notifiable->name, 'appName' => $appName, 'expiresIn' => '60 menit' ]); } /** * Get the array representation of the notification. * * @return array */ public function toArray(object $notifiable): array { return [ 'pin' => $this->pin, ]; } }