リセットパスワードブレードをカスタマイズしようとしています。laravelのパスワードをリセットするには?
これまでのところ
私はこのコードをUser.phpモデルに入れました。
public function sendPasswordResetNotification($token)
{
$this->notify(new ResetPasswordNotification($token));
}
そして、
PHPの職人メイク:通知は、私は質問がロゴを追加する方法である
public function toMail($notifiable)
{
return (new MailMessage)
->subject('Reset Password')
->line('You are receiving this email because we received a password reset request for your account.')
->action('Reset Password', url('admin/password/reset/'.$this->token, false))
->line('If you did not request a password reset, no further action is required.');
}
カスタム通知を発行するには、このコマンドを使用し をMyOwnResetPassword?
任意のヘルプや参照が
おかげドキュメント(https://laravel.com/docs/5.3/notifications#mail-notifications)で
画像のロゴを表示するには、 'line'メソッドを使用します。またテンプレート '{{'に '{!!'をテンプレート – C2486
thnxに変更しました。私は解決策を得ました。 – mayur