Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Laravel 拉威尔多重图像问题_Laravel_Laravel 5_Laravel 4 - Fatal编程技术网

Laravel 拉威尔多重图像问题

Laravel 拉威尔多重图像问题,laravel,laravel-5,laravel-4,Laravel,Laravel 5,Laravel 4,我需要在一个没有拉链的Laravel响应下载功能中下载多个图像,因为我需要在一个新页面上以角度显示图像。谢谢。如果我理解正确,您希望服务器提供图像吗 public function get($path) { $file = Storage::disk('s3')->get($pathToImage); return response($file, 200)->header('Content-Type', 'image/png'); }

我需要在一个没有拉链的Laravel响应下载功能中下载多个图像,因为我需要在一个新页面上以角度显示图像。谢谢。

如果我理解正确,您希望服务器提供图像吗

public function get($path)
{
    $file = Storage::disk('s3')->get($pathToImage);
    return response($file, 200)->header('Content-Type', 'image/png');
}