Skip to content

Commit c912705

Browse files
authored
Update README.md
1 parent ec4ebb6 commit c912705

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@ An authorization library that supports access control models like ACL, RBAC, ABA
1010
### common
1111

1212
- [PHP-DI](https://github.com/PHP-DI/PHP-DI)
13-
14-
### ThinkORM(默认)
15-
16-
- [ThinkORM](https://www.workerman.net/doc/webman/db/others.html)
17-
18-
### Laravel数据库
19-
20-
- [illuminate/database](https://www.workerman.net/doc/webman/db/tutorial.html)
13+
- [ThinkORM](https://www.workerman.net/doc/webman/db/others.html)(默认)
14+
- [illuminate/database](https://www.workerman.net/doc/webman/db/tutorial.html)(可选)
2115

2216
## Installation
2317

@@ -40,10 +34,15 @@ return $builder->build();
4034

4135
### 2、Database configuration
4236

43-
(1)修改数据库 `thinkorm` 配置
37+
#### (1)模型配置
4438

45-
(2)创建 `casbin_rule` 数据表
39+
- 使用ThinkORM(默认)
40+
- 修改数据库 `thinkorm.php` 配置
41+
- 使用laravel数据库(可选)
42+
- 修改数据库 `database.php` 配置
43+
- 修改数据库 `permission.php``adapter`适配器为laravel适配器
4644

45+
#### (2)创建 `casbin_rule` 数据表
4746
```sql
4847
CREATE TABLE `casbin_rule` (
4948
`id` BIGINT ( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT,
@@ -64,7 +63,8 @@ CREATE TABLE `casbin_rule` (
6463
KEY `idx_v5` ( `v5` ) USING BTREE
6564
) ENGINE = INNODB CHARSET = utf8mb4 COMMENT = '策略规则表';
6665
```
67-
(3)配置 `config/redis` 配置
66+
67+
#### (3)配置 `config/redis` 配置
6868

6969
## 重启webman
7070

0 commit comments

Comments
 (0)