Add new config storage_directory used for api
This commit is contained in:
@@ -306,3 +306,6 @@ MARHUN_CAMERAS_FIREFOX = "jSsq68fCLg2guCV2FaFzvXXiKBqbPA25DaQAWWotfqY="
|
|||||||
WABOT_API=https://md.wabot.my/api/send.php
|
WABOT_API=https://md.wabot.my/api/send.php
|
||||||
WABOT_INSTANCES_ID=63C26B7AAD21A
|
WABOT_INSTANCES_ID=63C26B7AAD21A
|
||||||
WABOT_TOKEN_KEYS=cbee7e95cf3ffbfa0531d5fddfd44f87
|
WABOT_TOKEN_KEYS=cbee7e95cf3ffbfa0531d5fddfd44f87
|
||||||
|
|
||||||
|
# for config STORAGE_DIRECTORY, set value without slash at the end
|
||||||
|
# STORAGE_DIRECTORY=/Users/UTM/Sites/lelong/storage
|
||||||
@@ -250,4 +250,6 @@ return [
|
|||||||
'api_url_kaunter' => env('API_URL_KAUNTER', 'http://localhost'),
|
'api_url_kaunter' => env('API_URL_KAUNTER', 'http://localhost'),
|
||||||
|
|
||||||
'app_pembida' => env('APP_PEMBIDA', 'http://localhost:8080'),
|
'app_pembida' => env('APP_PEMBIDA', 'http://localhost:8080'),
|
||||||
|
|
||||||
|
'storage_directory' => env('STORAGE_DIRECTORY', storage_path()),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -37,14 +37,14 @@ return [
|
|||||||
|
|
||||||
'marhun' => [
|
'marhun' => [
|
||||||
'driver' => 'local',
|
'driver' => 'local',
|
||||||
'root' => storage_path('app/marhun'),
|
'root' => config('app.storage_directory').DIRECTORY_SEPARATOR.'app/marhun',
|
||||||
'url' => env('APP_URL').'/marhun_photo',
|
'url' => env('APP_URL').'/marhun_photo',
|
||||||
'visibility' => 'public',
|
'visibility' => 'public',
|
||||||
],
|
],
|
||||||
|
|
||||||
'resit' => [
|
'resit' => [
|
||||||
'driver' => 'local',
|
'driver' => 'local',
|
||||||
'root' => storage_path('app'.DIRECTORY_SEPARATOR.'resit'),
|
'root' => config('app.storage_directory').DIRECTORY_SEPARATOR.'app/resit',
|
||||||
'url' => env('APP_URL').'/resit_photo',
|
'url' => env('APP_URL').'/resit_photo',
|
||||||
'visibility' => 'public',
|
'visibility' => 'public',
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user