我有配置:
'tests' => [
'driver' => 'local',
'root' => storage_path('tests'),
],
并运行:
Storage::disk('tests')->copy('1.txt', '/tmp/2.txt');
存储将文件复制到目录../tests/tmp/2.txt
,但不在/tmp
如何将文件复制到系统目录/tmp
?
我有配置:
'tests' => [
'driver' => 'local',
'root' => storage_path('tests'),
],
并运行:
Storage::disk('tests')->copy('1.txt', '/tmp/2.txt');
存储将文件复制到目录../tests/tmp/2.txt
,但不在/tmp
如何将文件复制到系统目录/tmp
?