Browse Source

update folder asset

pull/1/head
wahyuun 9 months ago
parent
commit
dae02af02b
  1. 11
      app/Http/Controllers/Controller.php

11
app/Http/Controllers/Controller.php

@ -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,

Loading…
Cancel
Save