阅读(1594) (8)

Laravel 8 编写消息

2021-07-06 09:24:44 更新

Markdown 邮件通知整合了 Blade 组件和 Markdown 语法,它允许您利用 Laravel 内置的通知组件的优点来轻松构建通知:

@component('mail::message')
# Invoice Paid

Your invoice has been paid!

@component('mail::button', ['url' => $url])
View Invoice
@endcomponent

Thanks,<br>
{{ config('app.name') }}
@endcomponent