【发布时间】:2019-08-27 10:53:09
【问题描述】:
我想重命名一个文件名,我想更改旧名称。
I have tried Storage::move('old_image path','new image path');
$file=ClientDocument::where('id',$request->id)->first();
Storage::move(url('/').'/file/'.$file->file,url('/').'/file/'. $request->file);
当我使用这个 Storage::move(url('/').'/file/'.$file->file,url('/').'/file/'.$request->file );
它显示一个错误
在路径中找不到文件:https://test.heartlandpar.com/public/file/99d0e66a-68e2-482c-8723-1bba1d35b871_rw_1920.jpg
但是当我在浏览器中点击这个网址时,图像在浏览器中打开。
【问题讨论】:
-
能否请您发布错误
标签: laravel