Invoice path

This commit is contained in:
cuneytsenturk
2018-01-02 16:22:30 +03:00
parent 6429a699b2
commit ddd18c7ea6
7 changed files with 29 additions and 25 deletions

View File

@ -36,10 +36,8 @@ trait Uploads
$company_id = session('company_id');
}
$path = config('filesystems.disks.uploads.root') . '/' . $company_id . '/' . $folder;
$path = $company_id . '/' . $folder;
config(['filesystems.disks.uploads.root' => $path]);
return MediaUploader::fromSource($file)->upload();
return MediaUploader::fromSource($file)->toDirectory($path)->upload();
}
}