为什么用 \think\facade\Filesystem::putFile( ‘topic’, $file);总是多一个storage目录
问题所在tp6在config文件夹下有一个filesystem.php文件 磁盘路径root,最后的storage去掉就可以解决
'default' => env('filesystem.driver', 'local'),
'disks' => [
'local' => [
'type' => 'local',
'root' => app()->getRuntimePath() . 'storage',
],
'public' => [
'type' => 'local',
'root' => app()->getRootPath() . 'public/storage',
'url' => '/storage',
'visibility' => 'public',
],
],
转载请注明原文地址:https://ipadbbs.8miu.com/read-17667.html