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
1919
2020# 使用
2121
22- > ** 1. 依赖注入配置**
22+ ## 依赖注入配置
2323
2424修改配置` config/container.php ` ,其最终内容如下:
2525
@@ -30,19 +30,19 @@ $builder->useAutowiring(true);
3030return $builder->build();
3131```
3232
33- > ** 2. 数据库配置**
33+ ## 数据库配置
3434
3535默认策略存储是使用的ThinkORM。
3636
37- ** 1、模型配置**
37+ ### 1、模型配置
3838
3939默认使用ThinkORM。修改数据库 ` thinkorm.php ` 配置
4040
4141> 如使用laravel数据库,配置参考如下
4242 - 修改数据库 ` database.php ` 配置
4343 - 修改数据库 ` permission.php ` 的` adapter ` 适配器为laravel适配器
4444
45- ** 2、创建 ` casbin_rule ` 数据表**
45+ ### 2、创建 ` casbin_rule ` 数据表
4646``` sql
4747CREATE TABLE `casbin_rule ` (
4848 ` id` BIGINT ( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT,
@@ -63,9 +63,9 @@ CREATE TABLE `casbin_rule` (
6363 KEY ` idx_v5` ( ` v5` ) USING BTREE
6464) ENGINE = INNODB CHARSET = utf8mb4 COMMENT = ' 策略规则表' ;
6565```
66- ** 3、配置 ` config/redis ` 配置**
66+ ### 3、配置 ` config/redis ` 配置
6767
68- ** 4、重启webman**
68+ ### 4、重启webman
6969
7070```
7171php start.php restart
You can’t perform that action at this time.
0 commit comments