新增管理员有误
出错信息:
Disk [admin] not configured, please add a disk config in config/filesystems.php
关于 LearnKu
请参照 4.1 节进行配置
@leo 哦,明白了,谢谢
这个问题,可以通过调试出来,为什么会报这个错误
我按照 4.1 配置,死活都不行,通过打印出来,发现根本不是我的配置,是缓存里面的,把缓存删除然后就可以了
将'admin' => [ 'driver' => 'local', 'root' => storage_path('app'), ]
添加在 config/filesystems.php 'disk' 数组中,执行php artisan cache:clear
记录一下,config-》admin.php,
执行 php artisan cache:clear