流明 6.3.4 / PHP 7.3.9
尝试从表单数据上传文件。收到此错误:Disk [qr_uploads] does not have a configured driver.
引导程序/app.php
$app->configure('filesystems');
$app->register(Illuminate\Filesystem\FilesystemServiceProvider::class);
配置/文件系统.php
<?php
return [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
'permissions' => [
'file' => [
'public' => 0664,
'private' => 0600,
],
'dir' => [
'public' => 0775,
'private' => 0700,
],
],
],
'qr_uploads' => [
'driver' => 'local',
'root' => storage_path('qr_uploads'),
'permissions' => [
'file' => [
'public' => 0664,
'private' => 0600,
],
'dir' => [
'public' => 0775,
'private' => 0700,
],
],
]
];
控制器.php
$upFile = $request->file('uploading');
$storedPath = $upFile->store('e_'.$entityId, 'qr_uploads');
得到上述错误。目录app/storage/qr_uploads
存在且可写。有任何想法吗?