【发布时间】:2016-06-29 13:22:34
【问题描述】:
\Storage::disk('verify_files')->put('verify-' . $fileCode[3], $fileCode[0]);
$attach = \Storage::get(storage_path('app/public/verify') . '/' . 'verify-' . $fileCode[3]);
我正在使用上面的代码来生成和获取文件。
这是我使用的文件系统:
'verify_files' => [
'driver' => 'local',
'root' => storage_path('app/public/verify'),
'visibility' => 'public',
],
当我用 file_exists() 测试它时,它返回 true 但 laravel 返回 FileNotFoundException in FilesystemAdapter.php line 61:
我错过了什么吗?
【问题讨论】:
标签: php laravel storage file-not-found