Skip to content

Commit ad3e745

Browse files
authored
Update README.md
1 parent 4683cb1 commit ad3e745

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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);
3030
return $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
4747
CREATE 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
```
7171
php start.php restart

0 commit comments

Comments
 (0)