webman将硬盘文件合并下载
直奔代码:
$content = file_get_contents($file1);
$content .= file_get_contents($file2);
return response($content)->withHeaders([
'Content-Disposition' => 'attachment; filename=' . urlencode('文件名'),
'Content-Type' => 'application/octet-stream',
]);