📜  在 laravel mailable 中附加多个文件 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:50.504000             🧑  作者: Mango

代码示例1
public function build()
{
    $email = $this->view('emails.employment_mailview')->subject('Employment Application');

    // $attachments is an array with file paths of attachments
    foreach($attachments as $filePath){
        $email->attach($filePath);
    }
    return $email;
}