新增管理员有误

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

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

刻意练习,每日精进。
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 5
leo

请参照 4.1 节进行配置

5年前 评论

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

5年前 评论

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

5年前 评论

记录一下,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

4年前 评论

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