美文网首页
laravel-admin 报错 Disk [admin] no

laravel-admin 报错 Disk [admin] no

作者: 荒凉的岁月 | 来源:发表于2020-02-01 19:41 被阅读0次

    在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/',
        ],
    

    相关文章

      网友评论

          本文标题:laravel-admin 报错 Disk [admin] no

          本文链接:https://www.haomeiwen.com/subject/uifzoctx.html