请问文件系统的本地驱动能否设置在项目以外的磁盘上 ?
laravel文件系统的本地驱动默认是 storage/app 目录,我想知道能不能把项目之外的目录设置为默认本地驱动。我试了一下,
配置文件这样写
'local' => [
'driver' => 'local',
//'root' => storage_path('app'),
'root' => 'd:/fetish',
],
在控制器里用 Storege::get('a.txt') 时报错
League \ Flysystem \ Exception
Impossible to create the root directory "d:/fetish/".
请问有办法实现吗?
推荐文章: