Laravel 邮箱验证 5.7

Laravel Email Verification 5.7

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

电子邮件的默认 laravel 降价部分:

{{-- 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

这已经 fixed 但尚未发布。

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

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