protected function addAttachments($mailMessage, $message)
    {
        foreach ($message->attachments as $attachment) {
            $mailMessage->attach($attachment['file'], $attachment['options']);
        }

        foreach ($message->rawAttachments as $attachment) {
            $mailMessage->attachData($attachment['data'], $attachment['name'], $attachment['options']);
        }
    }
protected function addAttachments($mailMessage, $message)
    {
        foreach ($message->attachments as $attachment) {
            $mailMessage->attach($attachment['file'], $attachment['options']);
        }

        foreach ($message->rawAttachments as $attachment) {
            $mailMessage->attachData($attachment['data'], $attachment['name'], $attachment['options']);
        }
    }
protected function addAttachments ( $ mailMessage , $ message ) { foreach ( $ message -> attachments as $ attachment ) { $ mailMessage -> attach ( $ attachment [ 'file' ] , $ attachment [ 'options' ] ) ; } foreach ( $ message -> rawAttachments as $ attachment ) { $ mailMessage -> attachData ( $ attachment [ 'data' ] , $ attachment [ 'name' ] , $ attachment [ 'options' ] ) ; } }
Add the attachments to the message.

@param  \Illuminate\Mail\Message  $mailMessage
@param  \Illuminate\Notifications\Messages\MailMessage  $message
@return void
Add the attachments to the message .