我已经试着调试这个东西几个小时了。
我有一个正在运行的laravel 6安装程序文件系统.php配置看起来像这样
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. The "local" disk, as well as a variety of cloud
| based disks are available to your application. Just store away!
|
*/
'default' => env('FILESYSTEM_DRIVER', 'local'),
/*
|--------------------------------------------------------------------------
| Default Cloud Filesystem Disk
|--------------------------------------------------------------------------
|
| Many applications store files both locally and in the cloud. For this
| reason, you may specify a default "cloud" driver here. This driver
| will be bound as the Cloud disk implementation in the container.
|
*/
'cloud' => env('FILESYSTEM_CLOUD', 's3'),
/*
|--------------------------------------------------------------------------
| Filesystem Disks
|--------------------------------------------------------------------------
|
| Here you may configure as many filesystem "disks" as you wish, and you
| may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options.
|
| Supported Drivers: "local", "ftp", "sftp", "s3", "rackspace"
|
*/
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'csvImports' => [
'driver' => 'local',
'root' => storage_path('app/csvImports'),
],
'zipToSpeed' => [
'driver' => 'local',
'root' => storage_path('app/zipToSpeed'),
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
],
'tests' => [
'driver' => 'local',
'root' => base_path('tests/storage'),
],
],
];
在我的开发环境中,甚至在phpunit测试中,一切都很好。
当我将它部署到生产环境中时,它总是给我
In FilesystemManager.php line 117:
Disk [zipToSpeed] does not have a configured driver.
我甚至尝试过删除文件系统配置并重新输入,以为可能是意外地出现了一些不可见的字符或其他。。。
任何帮助都将不胜感激。。。