我把所有上传的东西都放在一个定制的外置硬盘上.这些文件是通过自定义API存储的.
In Laravel 5.2, I can do this for a local file to download it:
return response()->download('path/to/file/image.jpg');
不幸的是,当我传递URL而不是路径时,Laravel抛出一个错误:
(当然,URL是一个虚拟的).
Is there any way I can download the image.jpg file using Laravel's implementation or do I do this with plain PHP instead?