dongyouji7022 2018-12-06 11:17
浏览 64
已采纳

修改Laravel降价邮件中的页脚

Laravel 5.7. I have a markdown mail:

@component('mail::message')
Hello, this is an email
@endcomponent

When it is sent, a footer is added:

© 2018 App Name. All rights reserved.

I want to edit this footer. I've published the vendor templates with php artisan vendor:publish --tag=laravel-mail. I've tried editing vendor/mail/markdown/footer.blade.php and vendor/mail/markdown/message.blade.php. But in both cases the original footer stays on the email. Where am I going wrong?

  • 写回答

1条回答 默认 最新

  • dongyi1524 2018-12-06 11:26
    关注

    The answer is that you have to change both the markdown and the HTML files. In my case, I changed

    vendor/mail/markdown/message.blade.php

    and

    vendor/mail/html/message.blade.php

    See https://github.com/laravel/framework/issues/17970#issuecomment-281121329

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?