From ea547bd1509ff2c537c990aa7e7441f938a0e586 Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Sat, 16 Nov 2024 17:28:37 +0700 Subject: [PATCH] fix: ensure the config storage link for prod env --- config/filesystems.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/filesystems.php b/config/filesystems.php index 99e1c77..3e962a0 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -99,7 +99,8 @@ */ 'links' => [ - public_path('storage') => env('FILESYSTEM_FILE_ROOT', storage_path('app/public')), + public_path('storage') => env('APP_ENV') === 'production' + ? env('FILESYSTEM_FILE_ROOT', storage_path('app/public')) + : storage_path('app/public'), ], - ];