protected function buildDiskAttachments($message)
    {
        foreach ($this->diskAttachments as $attachment) {
            $storage = Container::getInstance()->make(
                FilesystemFactory::class
            )->disk($attachment['disk']);

            $message->attachData(
                $storage->get($attachment['path']),
                $attachment['name'] ?? basename($attachment['path']),
                array_merge(['mime' => $storage->mimeType($attachment['path'])], $attachment['options'])
            );
        }
    }
protected function buildDiskAttachments($message)
    {
        foreach ($this->diskAttachments as $attachment) {
            $storage = Container::getInstance()->make(
                FilesystemFactory::class
            )->disk($attachment['disk']);

            $message->attachData(
                $storage->get($attachment['path']),
                $attachment['name'] ?? basename($attachment['path']),
                array_merge(['mime' => $storage->mimeType($attachment['path'])], $attachment['options'])
            );
        }
    }
protected function buildDiskAttachments ( $ message ) { foreach ( $ this -> diskAttachments as $ attachment ) { $ storage = Container :: getInstance ( ) -> make ( FilesystemFactory :: class ) -> disk ( $ attachment [ 'disk' ] ) ; $ message -> attachData ( $ storage -> get ( $ attachment [ 'path' ] ) , $ attachment [ 'name' ] ?? basename ( $ attachment [ 'path' ] ) , array_merge ( [ 'mime' => $ storage -> mimeType ( $ attachment [ 'path' ] ) ] , $ attachment [ 'options' ] ) ) ; } }
Add all of the disk attachments to the message.

@param  \Illuminate\Mail\Message  $message
@return void
Add all of the disk attachments to the message .