【问题标题】:Markdown Mail Button Laravel not working correctlyMarkdown 邮件按钮 Laravel 无法正常工作
【发布时间】:2019-10-19 17:14:03
【问题描述】:

我在 laravel 中创建了以下 markdown 邮件:

@component('mail::message')
@component('mail::button', ['url' => ''])
Button Text
@endcomponent
Thanks,<br>
@endcomponent

当我发送这封邮件时,我最终收到的内容如下:

按钮放在邮件文件的末尾,即使我关闭了组件。有任何想法吗?我没有更改 mail:message / mail:button 模板。

【问题讨论】:

    标签: css laravel email


    【解决方案1】:

    像这样的代码编辑通知类

     public function toMail($notification)
    {
        return (new MailMessage)
            ->line('')
            ->action('Thanks', url('add your custom link'));
    }
    

    【讨论】:

    • 但这并不能解决按钮加载不正确的问题,对吧?
    猜你喜欢
    • 2018-01-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-31
    • 1970-01-01
    • 1970-01-01
    • 2015-01-31
    • 1970-01-01
    相关资源
    最近更新 更多