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