| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- return [
- /**
- * Model 设置
- */
- 'model' => [
- // 可选值: "file", "text"
- 'config_type' => 'file',
- 'config_file_path' => env('config_path') . 'rbac-model.conf',
- 'config_text' => '',
- ],
- // 适配器 .
- 'adapter' => CasbinAdapter\Think\Adapter::class,
- /**
- * 数据库设置.
- */
- 'database' => [
- // 数据库连接名称,不填为默认配置.
- 'connection' => '',
- // 策略表名(不含表前缀)
- 'casbin_rules_name' => 'system_permissions_access',
- // 策略表完整名称.
- 'casbin_rules_table' => null,
- ],
- /**
- * ignore
- */
- 'ignore' => [
- 'policy' => [
- '/manage/person^get',
- '/manage/person^put',
- ],
- 'users_idx'=> '1'
- ]
- ];
|