I have a PDF file stored in app/storage/, and I want authenticated users to be able to view this file. I know that I can make them download it using
return
Laravel 5.6.*
$name = 'file.jpg';
store on image or pdf
$file->storeAs('public/', $name );
download image or pdf
return response()->download($name);
view image or pdf
return response()->file($name);