【发布时间】:2020-12-26 16:47:01
【问题描述】:
我在 resources/views/vendor/mail/html/coupon.blade.php 和 资源/视图/供应商/邮件/markdown/coupon.blade.php
也在config/mail.php中,我把配置改成了这个。
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
但是还是不能用
@component('mail::coupon')
在我的电子邮件刀片文件中。它抛出以下错误。
Facade/Ignition/Exceptions/ViewException with message 'View [coupon] not found.
【问题讨论】:
-
您是否尝试过清除缓存并重新启动服务器?它可能没有收到更改。
-
是的,我也这样做了