I try move file from catalog 'storage/cvs/'
to 'storage/r_cvs/'
. I have code:
$getOldCV = $worker->cv;
$createCatalogNameCV = $request->name."_".$request->surname;
$createCatalogCV = iconv('UTF-8', 'ISO-8859-1//TRANSLIT//IGNORE', $createCatalogNameCV);
// Storage::move('storage/cvs/'.$getOldCV, 'storage/r_cvs/' . $createCatalogCV . '/' . $getOldCV);
rename('storage/cvs/'.$getOldCV, 'storage/r_cvs/' . $createCatalogCV . '/' . $getOldCV);
When, I move file $getOldCV
, file are moved, but script remove all catalog 'storage/cvs/'
with files. I try use rename()
and Laravel function Storage::move
, but the effect is the same.