When I try to send reset password notification, this error occurs
Attempt to read property "view" on null
this is the code line on which this error occurs
$this->notify(new ResetPasswordNotification($token));
When I try to send reset password notification, this error occurs
Attempt to read property "view" on null
this is the code line on which this error occurs
$this->notify(new ResetPasswordNotification($token));
You need this method in User model:
public function sendPasswordResetNotification($token): void
{
$this->notify(new ResetPassword($token, $this));
}
You must pass user with token
You need to return the MailMessage
in toMail
like so:
return $this->buildMailMessage($this->resetUrl($notification));