Laravel - Password Reset - Reset Email Customization
You may easily modify the notification class used to send the password reset link to the user. To get started, override the sendPasswordResetNotification
method on your App\Models\User
model. Within this method, you may send the notification using any notification class of your own creation. The password reset $token
is the first argument received by the method. You may use this $token
to build the password reset URL of your choice and send your notification to the user:
use App\Notifications\ResetPasswordNotification;
/**
* Send a password reset notification to the user.
*
* @param string $token
* @return void
*/
public function sendPasswordResetNotification($token)
{
$url = 'https://example.com/reset-password?token='.$token;
$this->notify(new ResetPasswordNotification($url));
}