laravel-admin报错: Driver [] is not supported.

竺国兴
2023-12-01

1.查看config下的admin.php 

1)将disk修改为admin,不是则需要改成admin,或者没有的情况下需要添加.
'upload' => [
// Disk in `config/filesystem.php`.
'disk' => 'admin',

// Image and file upload path under the disk above.
'directory' => [
'image' => 'images',
'file' => 'files',
],
]

2)编辑config下的filesystems.php:
在disks下增加:
'admin' => [
'driver' => 'local',
'root' => public_path('upload'), // 图片上传本地的路径
'visibility' => 'public',
'url' => env('APP_URL').'/public/upload/', // 路径访问设置
]


转载于:https://www.cnblogs.com/victorcode/p/11506100.html

 类似资料: