新增管理员有误

出错信息:
Disk [admin] not configured, please add a disk config in config/filesystems.php

解决:
https://blog.csdn.net/guaiguaiknl/article/...

刻意练习,每日精进。
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
讨论数量: 5
leo

请参照 4.1 节进行配置

6年前 评论

这个问题,可以通过调试出来,为什么会报这个错误
我按照 4.1 配置,死活都不行,通过打印出来,发现根本不是我的配置,是缓存里面的,把缓存删除然后就可以了

6年前 评论

将'admin' => [ 'driver' => 'local', 'root' => storage_path('app'), ]
添加在 config/filesystems.php 'disk' 数组中,执行php artisan cache:clear

6年前 评论

记录一下,config-》admin.php,

~
~
~
 'upload' => [
        // 对应 filesystem.php 中的 disks
        // Disk in `config/filesystem.php`.
        'disk' => 'public',

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

执行 php artisan cache:clear

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!