From f400bcc2d6f32fa36e26c3318fd90a7a68c84905 Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Sat, 16 Nov 2024 17:30:03 +0700 Subject: [PATCH] feat: create app constants --- config/filesystems.php | 2 +- src/Constants/AppConstant.php | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/Constants/AppConstant.php diff --git a/config/filesystems.php b/config/filesystems.php index 3e962a0..8b8cc89 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -99,7 +99,7 @@ */ 'links' => [ - public_path('storage') => env('APP_ENV') === 'production' + public_path('storage') => env('APP_ENV') === \CSlant\Blog\Core\Constants\AppConstant::APP_ENV_PROD ? env('FILESYSTEM_FILE_ROOT', storage_path('app/public')) : storage_path('app/public'), ], diff --git a/src/Constants/AppConstant.php b/src/Constants/AppConstant.php new file mode 100644 index 0000000..3a0b333 --- /dev/null +++ b/src/Constants/AppConstant.php @@ -0,0 +1,13 @@ +