laravel 文件下载

您好,我想问一下,我如何下载 storage/exports/*.xls文件,
return response()->download($filename.'.xls');,这句话好像不能下载,说是找不到文件,请问如何修改,谢谢!

cnwalky

同问同问,请高手帮忙

chenyuanqi

既然都提示找不到文件了,还不试试绝对路径,看有没有奇迹发生?

erhu123

都试过了,但没用,不知道是哪里不对。

JellyBool
return response()->download(storage_path('exports/filename.xls'));

这样呢?