$fileType, 'Content-Disposition' => 'attachment; filename="' . $fileName . '"', 'Content-Length' => $fileSize, 'Cache-Control' => 'no-cache, must-revalidate', 'Pragma' => 'no-cache', 'Expires' => '0' ]; // 读取文件内容 $content = file_get_contents($filePath); // 返回文件下载响应 return Response::create($content, 'file', 200, $headers); } }