From 62a0eba25c677e3112ea6f0eee2ae60dfcbec9a4 Mon Sep 17 00:00:00 2001 From: Flavio Barachino Date: Tue, 21 Oct 2025 18:28:19 +0200 Subject: [PATCH] modificato con asset --- app/Http/Controllers/GenDocController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/GenDocController.php b/app/Http/Controllers/GenDocController.php index b2e2a14..76e6dbc 100644 --- a/app/Http/Controllers/GenDocController.php +++ b/app/Http/Controllers/GenDocController.php @@ -38,7 +38,7 @@ class GenDocController extends Controller public function downloadFile(Request $request){ $doc = Gendoc::find($request->id); // dd($doc->filename); - return response()->download(storage_path($doc->filename)); + return response()->download(asset($doc->filename)); } }