*/ public function via(object $notifiable): array { return ['mail']; } /** * Get the mail representation of the notification. */ public function toMail(object $notifiable): MailMessage { return (new MailMessage) // ->from('') ->subject('Reset your password') ->line('Use the code below to reset your password') ->line($this->passwordResetCode) ->line('If this is not you, please feel free to ignore this message') ->line('Thank you'); } /** * Get the array representation of the notification. * * @return array */ public function toArray(object $notifiable): array { return [ 'message' => "Use this code to reset your password: {$this->passwordResetCode}", 'title' => 'Reset your password', ]; } }