Add new config storage_directory used for api

This commit is contained in:
Amir
2023-03-19 14:53:55 +08:00
parent 379e8a4d77
commit 452435df26
3 changed files with 7 additions and 2 deletions
+3
View File
@@ -306,3 +306,6 @@ MARHUN_CAMERAS_FIREFOX = "jSsq68fCLg2guCV2FaFzvXXiKBqbPA25DaQAWWotfqY="
WABOT_API=https://md.wabot.my/api/send.php
WABOT_INSTANCES_ID=63C26B7AAD21A
WABOT_TOKEN_KEYS=cbee7e95cf3ffbfa0531d5fddfd44f87
# for config STORAGE_DIRECTORY, set value without slash at the end
# STORAGE_DIRECTORY=/Users/UTM/Sites/lelong/storage
+2
View File
@@ -250,4 +250,6 @@ return [
'api_url_kaunter' => env('API_URL_KAUNTER', 'http://localhost'),
'app_pembida' => env('APP_PEMBIDA', 'http://localhost:8080'),
'storage_directory' => env('STORAGE_DIRECTORY', storage_path()),
];
+2 -2
View File
@@ -37,14 +37,14 @@ return [
'marhun' => [
'driver' => 'local',
'root' => storage_path('app/marhun'),
'root' => config('app.storage_directory').DIRECTORY_SEPARATOR.'app/marhun',
'url' => env('APP_URL').'/marhun_photo',
'visibility' => 'public',
],
'resit' => [
'driver' => 'local',
'root' => storage_path('app'.DIRECTORY_SEPARATOR.'resit'),
'root' => config('app.storage_directory').DIRECTORY_SEPARATOR.'app/resit',
'url' => env('APP_URL').'/resit_photo',
'visibility' => 'public',
],