流明存储 - FileNotFoundException
Lumen Storage - FileNotFoundException
我将 flysystem
添加到 Lumen,这样我就可以使用 Storage
Facade。
我添加了正确的 config
文件,然后我正在尝试:
$template = Storage::get(storage_path('a.html'));
配置:
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path(),
'url' => env('APP_URL').'/storage',
],
'public' => [
'driver' => 'local',
'root' => storage_path(),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
我得到:
FileNotFoundException /var/www/storage/a.html
The file exists in that location.
有什么线索吗?
试试 Storage::get(“a.html”)
而不是
我将 flysystem
添加到 Lumen,这样我就可以使用 Storage
Facade。
我添加了正确的 config
文件,然后我正在尝试:
$template = Storage::get(storage_path('a.html'));
配置:
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path(),
'url' => env('APP_URL').'/storage',
],
'public' => [
'driver' => 'local',
'root' => storage_path(),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
我得到:
FileNotFoundException /var/www/storage/a.html
The file exists in that location.
有什么线索吗?
试试 Storage::get(“a.html”)
而不是