src/Components/Attachment.php
public function getContent($base64encode = false)
    {
        $content = file_get_contents($this->path);

        return ($base64encode) ? base64_encode($content) : $content;
    }
public function getContent($base64encode = false)
    {
        $content = file_get_contents($this->path);

        return ($base64encode) ? base64_encode($content) : $content;
    }
@param bool $base64encode

@return bool|string