From 75d9597596b2071232582a0516e86a6a5bb8ea3b Mon Sep 17 00:00:00 2001 From: Flavio Barachino Date: Tue, 21 Oct 2025 14:33:11 +0200 Subject: [PATCH] Sistemato path per salvataggio files --- app/Models/GenDoc.php | 2 +- config/filesystems.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/GenDoc.php b/app/Models/GenDoc.php index 5a5eaa1..3116472 100644 --- a/app/Models/GenDoc.php +++ b/app/Models/GenDoc.php @@ -16,7 +16,7 @@ class GenDoc extends Model public static function saveDocument($data){ - $filename=$data->file('filename')->store(asset(self::getEntityFolder($data['entity']))); + $filename=$data->file('filename')->store(self::getEntityFolder($data['entity'])); DB::table('gen_docs') ->insert([ 'entity'=>$data['entity'], diff --git a/config/filesystems.php b/config/filesystems.php index 44fe9c8..32114d8 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -13,7 +13,7 @@ return [ | */ - 'default' => env('FILESYSTEM_DISK', 'local'), + 'default' => env('FILESYSTEM_DISK', 'public'), /* |--------------------------------------------------------------------------