Skip to content

Commit f4bfc7b

Browse files
authored
Update README.md
1 parent 68368e7 commit f4bfc7b

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,19 @@ return $builder->build();
3232

3333
### 2. 数据库配置
3434

35-
> 默认策略存储是使用的ThinkORM,如使用[laravel的数据库](https://learnku.com/docs/laravel/8.x/eloquent/9400)[illuminate/database](https://github.com/illuminate/database),请按照官方文档按照相应的依赖包:https://www.workerman.net/doc/webman/db/tutorial.html
35+
> 默认策略存储是使用的ThinkORM。
36+
> 如使用 laravel的数据库 [illuminate/database](https://github.com/illuminate/database),请按照官方文档按照相应的依赖包:https://www.workerman.net/doc/webman/db/tutorial.html
3637
37-
🚀 **(1) 模型配置**
38+
#### 🚀 (1) 模型配置
3839

39-
- 📒📒📒 使用ThinkORM(默认)
40-
- 修改数据库 `thinkorm.php` 配置
41-
- 📕📕📕 使用laravel数据库(可选)
42-
- 修改数据库 `database.php` 配置
43-
- 修改数据库 `permission.php``adapter`适配器为laravel适配器
40+
📒📒📒 **使用ThinkORM(默认)**📒📒📒
41+
- 修改数据库 `thinkorm.php` 配置
4442

45-
🔰 **(2) 创建 `casbin_rule` 数据表**
43+
📕📕📕 **使用laravel数据库(可选)**📕📕📕
44+
- 修改数据库 `database.php` 配置
45+
- 修改数据库 `permission.php``adapter`适配器为laravel适配器
46+
47+
#### 🔰 (2) 创建 `casbin_rule` 数据表
4648
```sql
4749
CREATE TABLE `casbin_rule` (
4850
`id` BIGINT ( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT,
@@ -64,7 +66,7 @@ CREATE TABLE `casbin_rule` (
6466
) ENGINE = INNODB CHARSET = utf8mb4 COMMENT = '策略规则表';
6567
```
6668

67-
📚 **(3) 配置 `config/redis` 配置**
69+
#### 📚 (3) 配置 `config/redis` 配置
6870

6971
## 重启webman
7072

0 commit comments

Comments
 (0)