能否增加多Auth支持?前台后台都想用配置文件却固定了。
$this->_config = array_merge($this->_config, config('auth.auth_config'));
auth_config user_config
$this->_config = array_merge($this->_config, config('auth.auth_config'));
auth_config user_config
不需要这样处理的,tp5.1可以复制一份auth.php到模块的配置目录里,tp6.0复制到应用的目录里,thinkphp本身就可以针对模块或者应用做不同的配置项的 参考: https://www.kancloud.cn/manual/thinkphp5_1/353951
是的,突然忘记了,非常感谢回复
$this->_config = array_merge($this->_config, config('auth.auth_config'));
auth_config user_config
举例:
├─application (应用目录) │ └─admin(模块目录) │ └─config(模块配置目录) │ ├─app.php 应用配置 │ ├─cache.php 缓存配置 │ ├─cookie.php Cookie配置 │ ├─database.php 数据库配置 │ ├─log.php 日志配置 │ ├─session.php Session配置 │ ├─template.php 模板引擎配置 │ ├─trace.php Trace配置 │ ├─auth.php 权限配置配置 │ └─ ... 更多配置文件 │ └─index(模块目录) │ └─config(模块配置目录) │ ├─app.php 应用配置 │ ├─cache.php 缓存配置 │ ├─cookie.php Cookie配置 │ ├─database.php 数据库配置 │ ├─log.php 日志配置 │ ├─session.php Session配置 │ ├─template.php 模板引擎配置 │ ├─trace.php Trace配置 │ ├─auth.php 权限配置配置 │ └─ ... 更多配置文件 │