Answers for "how to multi file attache in laravel email?"

PHP
1

attach multiple files in laravel mailable

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;
}
Posted by: Guest on November-20-2020

Code answers related to "how to multi file attache in laravel email?"

Browse Popular Code Answers by Language