使用laravel 5.1将所有上传的文件移动到E:/ drive

时间:2017-02-08 08:43:30

标签: php laravel-5

如何使用Laravel将所有上传的文件移动到E:驱动器?这是我的代码:

$test = "E:";
$path = "checklist/uploads";
$destinationPath = $test . "/$path/";    
if (!file_exists($destinationPath)) {
    mkdir($destinationPath);
}

0 个答案:

没有答案