File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ composer require -W casbin/webman-permission
19
19
20
20
# 使用
21
21
22
- > ** 1. 依赖注入配置**
22
+ ## 依赖注入配置
23
23
24
24
修改配置` config/container.php ` ,其最终内容如下:
25
25
@@ -30,19 +30,19 @@ $builder->useAutowiring(true);
30
30
return $builder->build();
31
31
```
32
32
33
- > ** 2. 数据库配置**
33
+ ## 数据库配置
34
34
35
35
默认策略存储是使用的ThinkORM。
36
36
37
- ** 1、模型配置**
37
+ ### 1、模型配置
38
38
39
39
默认使用ThinkORM。修改数据库 ` thinkorm.php ` 配置
40
40
41
41
> 如使用laravel数据库,配置参考如下
42
42
- 修改数据库 ` database.php ` 配置
43
43
- 修改数据库 ` permission.php ` 的` adapter ` 适配器为laravel适配器
44
44
45
- ** 2、创建 ` casbin_rule ` 数据表**
45
+ ### 2、创建 ` casbin_rule ` 数据表
46
46
``` sql
47
47
CREATE TABLE `casbin_rule ` (
48
48
` id` BIGINT ( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT,
@@ -63,9 +63,9 @@ CREATE TABLE `casbin_rule` (
63
63
KEY ` idx_v5` ( ` v5` ) USING BTREE
64
64
) ENGINE = INNODB CHARSET = utf8mb4 COMMENT = ' 策略规则表' ;
65
65
```
66
- ** 3、配置 ` config/redis ` 配置**
66
+ ### 3、配置 ` config/redis ` 配置
67
67
68
- ** 4、重启webman**
68
+ ### 4、重启webman
69
69
70
70
```
71
71
php start.php restart
You can’t perform that action at this time.
0 commit comments