首页 新闻 赞助 找找看

Laravel保存图片路径的问题

0
[已关闭问题] 关闭于 2019-04-04 07:50

不懂php,现在要修改一个图片的保存路径
查了一下程序用的开发框架是Laravel
Storage::disk('local')->put($path, file_get_contents($filePath))
这里的path是相对于网站根路径下storage\app的。
我现在要修改为e盘下的一个绝对路径
可是我修改以后日志报错
Impossible to create the root directory "C:\wamp64\www\php\storage\app\e://xxx/xxx/xxx
于是又百度了一下
说是代码Storage::disk('public')->put($path, file_get_contents($filePath))
然后修改config下的filesystem.php
加上配置
'public' => [
'driver' => 'local',
'root' => storage_path()]
但是加上后还是不能创建目录,应该是filesyatem.php设置的有问题
哪位老师可以帮忙看看
php真心不懂

teagueli的主页 teagueli | 初学一级 | 园豆:73
提问于:2019-04-01 14:52
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册