Answer the question
In order to leave comments, you need to log in
How to change laravel 5.4 password change message?
I've been fighting for 3 hours now. Google did not help absolutely, everywhere they refer to documentation that says the same as I do.
In app/User.php added
public function sendPasswordResetNotification($token)
{
$this->notify((new MailMessage)
->subject('password reset')
->action('Reset Password', url(config('app.url').route('password.reset', $token, false))));
}
Answer the question
In order to leave comments, you need to log in
I don’t remember exactly, when you deploy authorization through artisan, the template of this letter appears in the views, and you can fix it there without touching the code.
Add a method to the User model
public function sendPasswordResetNotification($token)
{
$this->notify(new ResetPasswordNotification($token));
}
artisan make:notification ResetPasswordNotification
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question