我用的是5.022版,db()方法第三个参数默认是false,所以不需要再加了;以下是db()方法源码:
function db($name = '', $config = [], $force = false)
{
return Db::connect($config, $force)->name($name);
}
function db($name = '', $config = [], $force = false)
{
return Db::connect($config, $force)->name($name);
}
2018-11-09