|
|
@ -46,13 +46,10 @@ class Controller extends BaseController |
|
|
|
|
|
|
|
|
|
|
|
protected function setCustomeDirectoryUpload($company_name) |
|
|
|
protected function setCustomeDirectoryUpload($company_name) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$current_date = date('Y-m-d'); |
|
|
|
$pathImage = 'assets/' . $company_name . '/image/'; |
|
|
|
[$year, $month, $day] = explode('-', $current_date); |
|
|
|
$pathDocument = 'assets/' . $company_name . '/file/project/'; |
|
|
|
|
|
|
|
$pathTmpImport = 'assets/' . $company_name . '/file/tmpimport/'; |
|
|
|
$pathImage = 'assets/' . $company_name . ' ' . $year . '-' . $month . '-' . $day . '/image/'; |
|
|
|
$pathActivityDocument = 'assets/' . $company_name . '/file/activity/'; |
|
|
|
$pathDocument = 'assets/' . $company_name . ' ' . $year . '-' . $month . '-' . $day . '/file/project/'; |
|
|
|
|
|
|
|
$pathTmpImport = 'assets/' . $company_name . ' ' . $year . '-' . $month . '-' . $day . '/file/tmpimport/'; |
|
|
|
|
|
|
|
$pathActivityDocument = 'assets/' . $company_name . ' ' . $year . '-' . $month . '-' . $day . '/file/activity/'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return [ |
|
|
|
return [ |
|
|
|
'pathImage' => $pathImage, |
|
|
|
'pathImage' => $pathImage, |
|
|
|