如何在Laravel 5.3中自定義重置電子郵件模板的路徑?Laravel 5.3重新定義重置電子郵件刀片模板
使用的模板是:vendor/laravel/framework/src/Illuminate/Notifications/resources/views/email.blade.php
我想建立自己的。
此外,如何改變這種電子郵件的預定義的文本:vendor/laravel/framework/src/Illuminate/Auth/Notifications/ResetPassword.php
public function toMail()
{
return (new MailMessage)
->line([
'You are receiving this email because we received a password reset request for your account.',
'Click the button below to reset your password:',
])
->action('Reset Password', url('password/reset', $this->token))
->line('If you did not request a password reset, no further action is required.');
}
另外,創建一個新的Notification類,則必須使用此命令行' php artisan make:通知MyOwnResetPassword' [更多信息](https://laracasts.com/discuss/channels/laravel/how-to-override-message-in-sendresetlinkemail-in-forgotpasswordcontroller#reply-183598) – Garric15