xxxxxxxxxx
//do this
public function downloadFile($fileName){
$filePath = storage_path('/app/public/salaries/single/'. $fileName);
return response()->download($filePath);
or
return Storage::download('public/salaries/single/'. $fileName);
}
//note: file located at "storage/app/public/salaries/single/"
// $fileName = fileName.fileExtension. eg. abc.pdf