Laravel 5.4 wrongly mix HTML components in Markdown Mailable

杀马特。学长 韩版系。学妹 提交于 2019-12-04 02:03:11

Re reading the docs:

Markdown mailables support Blade templates. Blade support only ordinary html and blade syntax.

Individual components can use markdown compilers to parse some or all inputs. That's how @component('mail::table') works.

Update: Markdown versions are used to generate plain text mails. Where as blade templates are used to generate html versions. Again, markdown can be compiled explicitly in blade templates, but that's the extend of it's support.

I think you need to follow laravel documentation here:https://laravel.com/docs/5.4/mail#markdown-mailables and also you could check laravel news article https://laravel-news.com/laravel-markdown-emails.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!