laravel-admin报错Disk [admin] not configured
报错(Disk [admin] not configured, please add a disk config in config/filesystems.php
.)
新部署的laravel-admin出现过这个错误,我在config/filesystems.php的disks数组里面添加上
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path( 'app' ),
],
'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' ),
],
//新增的数组
'admin' => [
'driver' => 'local',
'root' => public_path('upload'),
'visibility' => 'public',
'url' => env('APP_URL') . '/upload/',
],
],
添加上这数组后问题依然没有解决,有其他小伙伴遇到过这种情况么?
推荐文章: