1,获取配置信息 config('配置名'); 2.获取数据库配置文件信息 config('database.配置名'); 转载于:https://www.cnblogs.com/lsbaiwyl/p/8336884.html