think-api icon indicating copy to clipboard operation
think-api copied to clipboard

Class 'Config' not found

Open tom-soft opened this issue 5 years ago • 1 comments

namespace Zewail\Api\Setting;

use Config;

找不到这个Config

如果用门面应该是use think\facade\Config;

Config::pull

无需进行实例化就可以很方便的进行方法调用

ThinkPHP V6.0.3

tom-soft avatar Sep 21 '20 10:09 tom-soft

针对 ThinkPHP V6.0.3 版本已调通,需要改Setting,Routing文件,修改如下:

image

希望修订

tom-soft avatar Sep 22 '20 01:09 tom-soft