7 Star 44 Fork 26

xiaodi/think-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tauthz.php 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
Eden Leung 提交于 2021-02-17 15:59 +08:00 . Apply fixes from StyleCI
<?php
/*
* This file is part of TAnt.
* @link https://github.com/edenleung/think-admin
* @document https://www.kancloud.cn/manual/thinkphp6_0
* @contact QQ Group 996887666
* @author Eden Leung 758861884@qq.com
* @copyright 2019 Eden Leung
* @license https://github.com/edenleung/think-admin/blob/6.0/LICENSE.txt
*/
return [
/*
*Default Tauthz enforcer
*/
'default' => 'basic',
'log' => [
// changes whether Lauthz will log messages to the Logger.
'enabled' => true,
// Casbin Logger, Supported: \Psr\Log\LoggerInterface|string
'logger' => 'log',
],
'enforcers' => [
'basic' => [
/*
* Model 设置
*/
'model' => [
// 可选值: "file", "text"
'config_type' => 'file',
'config_file_path' => config_path() . 'tauthz-rbac-model.conf',
'config_text' => '',
],
// 适配器 .
'adapter' => tauthz\adapter\DatabaseAdapter::class,
/*
* 数据库设置.
*/
'database' => [
// 数据库连接名称,不填为默认配置.
'connection' => '',
// 策略表名(不含表前缀)
'rules_name' => 'rules',
// 策略表完整名称.
'rules_table' => null,
],
],
],
];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/heehee/think-admin.git
git@gitee.com:heehee/think-admin.git
heehee
think-admin
think-admin
6.0-next

搜索帮助