没有为 [mail] Laravel 8 定义提示路径
No hint path defined for [mail] Laravel 8
在我的 Laravel 项目中,我正在尝试使用电子邮件发件人,我在队列中使用 Mailable 和作业,这工作正常,但现在我正在尝试使用 markdown 发送电子邮件,对于一些reason is not working bcs 这个错误:“没有为 [mail] 定义提示路径”
可邮寄:
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->markdown('emails.orders.shipped',['url'=>'www.google.com']);
}
}
这是 blade 视图,它是 Laravel 文档的默认示例:
@component('mail::message')
# Introduction
The body of your message.
@component('mail::button', ['url' => $url])
Button Text
@endcomponent
Thanks,<br>
@endcomponent
我需要传递一个 url 字符串。
我试过这个脚本它工作正常可能是缓存的问题你可以试试这个命令
php artisan optimize:clear
在我的 Laravel 项目中,我正在尝试使用电子邮件发件人,我在队列中使用 Mailable 和作业,这工作正常,但现在我正在尝试使用 markdown 发送电子邮件,对于一些reason is not working bcs 这个错误:“没有为 [mail] 定义提示路径”
可邮寄:
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->markdown('emails.orders.shipped',['url'=>'www.google.com']);
}
}
这是 blade 视图,它是 Laravel 文档的默认示例:
@component('mail::message')
# Introduction
The body of your message.
@component('mail::button', ['url' => $url])
Button Text
@endcomponent
Thanks,<br>
@endcomponent
我需要传递一个 url 字符串。
我试过这个脚本它工作正常可能是缓存的问题你可以试试这个命令
php artisan optimize:clear