Laravel电子邮件验证5.7

时间:2018-10-16 15:20:37

标签: laravel markdown laravel-5.7

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

actionUrl problem

电子邮件的默认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

1 个答案:

答案 0 :(得分:3)

它已经fixed但尚未发布。

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

[
    'actionText' => $actionText,
    'actionURL' => $actionUrl,
]
相关问题