【发布时间】:2017-03-06 11:54:14
【问题描述】:
我正在尝试在 public/storage 中创建文件夹,但是当我调用 Storage::makeDirectory("public/storage/newdirectory") 时,它会在存储文件夹中创建带有子文件夹 public/storage/newdirectory 的文件夹。当我尝试将其更改为../public/storage 时,我收到错误消息"Path is outside of the defined root"。知道我该如何改变它吗?
从网上找到这样的东西:public_path("/storage/newdirectory");
它没有帮助。
【问题讨论】: