//压缩文件
$zipper=new Zipper();
$zipper->make($dir.'.zip')->add($dir);
$zipper->close();
return response()->download(public_path($dir.'.zip'));

 

留下评论