src/IMAP/Attachment.php
public function save($path = null, $filename = null) {
        $path = $path ?: storage_path();
        $filename = $filename ?: $this->getName();

        $path = substr($path, -1) == DIRECTORY_SEPARATOR ? $path : $path.DIRECTORY_SEPARATOR;

        return File::put($path.$filename, $this->getContent()) !== false;
    }
public function save($path = null, $filename = null) {
        $path = $path ?: storage_path();
        $filename = $filename ?: $this->getName();

        $path = substr($path, -1) == DIRECTORY_SEPARATOR ? $path : $path.DIRECTORY_SEPARATOR;

        return File::put($path.$filename, $this->getContent()) !== false;
    }
public function save ( $ path = null , $ filename = null ) { $ path = $ path ? : storage_path ( ) ; $ filename = $ filename ? : $ this -> getName ( ) ; $ path = substr ( $ path , - 1 ) == DIRECTORY_SEPARATOR ? $ path : $ path . DIRECTORY_SEPARATOR ; return File :: put ( $ path . $ filename , $ this -> getContent ( ) ) !== false ; }
Save the attachment content to your filesystem

@param string|null $path
@param string|null $filename

@return boolean
Save the attachment content to your filesystem