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
+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',
],