我正在使用laravel进行开发,在此之前一切正常,但是在本周,laravel总是返回file not found
,即使我已经将其存储。为什么会这样?
Error from laravel。My file location
public function file()
{
$file= asset('storage/documents/President New Year Message 2019 (Text only).pdf');
$headers = [
'Content-Type' => 'application/pdf',
];
return response()->download($file, 'President New Year Message 2019 (Text only).pdf', $headers);
}