laravel-admin 报错 Disk [admin] not configured, please add a disk config in `config/filesystems.php`....

在config/filesystems.php中添加:

'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_KEY'),
        'secret' => env('AWS_SECRET'),
        'region' => env('AWS_REGION'),
        'bucket' => env('AWS_BUCKET'),
    ],
    'admin' => [
        'driver'     => 'local',
        'root'       => public_path('upload'),
        'visibility' => 'public',
        'url' => env('APP_URL').'/public/upload/',
    ],

],

原文:https://blog.csdn.net/guaiguaiknl/article/details/80332337

config/admin.php

config/filesystem.php

 

posted @ 2018-10-18 10:11  码农编程进阶笔记  阅读(32)  评论(0编辑  收藏  举报
返回顶部 有事您Q我