id.'/'.$val); 但它给了我 File not found at pat-6ren">
gpt4 book ai didi

laravel - 存储::移动给 "File not found at path:"Laravel 与 Ubuntu

转载 作者:行者123 更新时间:2023-12-04 16:31:28 26 4
gpt4 key购买 nike

我想移动一些文件

Storage::move('posts/temp/'.$val,'photos/'.$post->id.'/'.$val);

但它给了我

File not found at path: home/vagrant/Code/......

是否需要寻找一些特殊的配置?顺便说一句,该文件确实位于未找到的路径中。

最佳答案

您需要添加您正在使用的 disk() 详细信息,例如,如果您使用的是亚马逊 s3,您需要添加 disk('s3') 在移动之前,代码将是:

Storage::disk('s3')->move('posts/temp/'.$val,'photos/'.$post->id.'/'.$val);

关于laravel - 存储::移动给 "File not found at path:"Laravel 与 Ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32385056/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com