src/Header.php
public function setContentDisposition($filename) {
        if (strpos(app('request')->server('HTTP_USER_AGENT'), 'MSIE') !== false) {     //如果是IE浏览器
            $filename = preg_replace('/\./', '%2e', $filename, substr_count($filename, '.') - 1);
        }
        return $this->set('Content-Disposition', 'attachment; filename="'.$filename.'"');
    }
public function setContentDisposition($filename) {
        if (strpos(app('request')->server('HTTP_USER_AGENT'), 'MSIE') !== false) {     //如果是IE浏览器
            $filename = preg_replace('/\./', '%2e', $filename, substr_count($filename, '.') - 1);
        }
        return $this->set('Content-Disposition', 'attachment; filename="'.$filename.'"');
    }
下载文件的文件名
@param string $filename
@return Header
@throws \Exception