I have the following code:
public function store(string $folder, $file){
$ret = Storage::putFileAs("/application/public/storage/1/{$folder}", $file, $file->getClientOriginalName());
return $ret;
}
}
Where the path to the putFileAs
function ends up being /application/public/storage/1/tasks/NXL-1
after feeding the variable $folder
, but even tho the variable $ret
in the return has the path to that file as if it worked /application/public/storage/1/tasks/NXL-1/image.png
, when I go to that folder the file is not there. What should I do?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…