📅  最后修改于: 2022-03-11 14:54:23.993000             🧑  作者: Mango
public function toMail($notifiable)
{
return (new MailMessage)
->line('Please download the PDF.')
->attach(public_path($this->filename), [
'as' => 'filename.pdf',
'mime' => 'text/pdf',
]);
}