original_string: 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'])
              );
          }
      }
code: 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'])
              );
          }
      }
code_tokens: 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' ] ) ) ; } }
docstring: Add all of the disk attachments to the message.
  
  @param  \Illuminate\Mail\Message  $message
  @return void
docstring_tokens: Add all of the disk attachments to the message .