【问题标题】:Laravel Email Verification 5.7Laravel 电子邮件验证 5.7
【发布时间】:2018-12-28 16:19:20
【问题描述】:

我实现了 Laravel 开箱即用的电子邮件验证,但目前在电子邮件页脚中添加的 actionURL 链接存在问题。电子邮件中的按钮具有正确的链接,但页脚中的链接显示“:actionURL”...

邮件的默认 laravel markdown 的一部分:

{{-- Action Button (button is working)--}}
@component('mail::button', ['url' => $actionUrl, 'color' => $color])
{{ $actionText }}
@endcomponent

{{-- Subcopy (the link has an issue)--}}
@component('mail::subcopy')
@lang(
    "If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n".
'into your web browser: [:actionURL](:actionURL)',
    [
        'actionText' => $actionText,
        'actionUrl' => $actionUrl
    ]
)
@endcomponent

【问题讨论】:

  • 此问题已修复,请将您的 laravel/framework 依赖项更新到最新版本。
  • @JonasStaudenmeir 如果我检查我的 composer.json "laravel/framework": "5.7.*"... 我昨天创建了这个项目,没有版本标志...我错过了什么:/
  • composer showlaravel/framework 有什么看法?
  • @JonasStaudenmeir laravel/framework v5.7.9

标签: laravel markdown laravel-5.7


【解决方案1】:

这是fixed,但尚未发布。

在 Laravel 5.7.10 发布之前,您可以手动将修复应用到您的 vendor/laravel/framework/src/Illuminate/Notifications/resources/views/email.blade.php 文件:

[
    'actionText' => $actionText,
    'actionURL' => $actionUrl,
]

【讨论】:

    猜你喜欢
    • 2019-03-05
    • 2019-03-05
    • 2023-03-28
    • 2019-03-04
    • 2019-03-25
    • 1970-01-01
    • 1970-01-01
    • 2019-10-18
    • 1970-01-01
    相关资源
    最近更新 更多