File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -32,17 +32,19 @@ return $builder->build();
32
32
33
33
### 2. 数据库配置
34
34
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
36
37
37
- 🚀 ** (1) 模型配置**
38
+ #### 🚀 (1) 模型配置
38
39
39
- - 📒📒📒 使用ThinkORM(默认)
40
- - 修改数据库 ` thinkorm.php ` 配置
41
- - 📕📕📕 使用laravel数据库(可选)
42
- - 修改数据库 ` database.php ` 配置
43
- - 修改数据库 ` permission.php ` 的` adapter ` 适配器为laravel适配器
40
+ 📒📒📒 ** 使用ThinkORM(默认)** 📒📒📒
41
+ - 修改数据库 ` thinkorm.php ` 配置
44
42
45
- 🔰 ** (2) 创建 ` casbin_rule ` 数据表**
43
+ 📕📕📕 ** 使用laravel数据库(可选)** 📕📕📕
44
+ - 修改数据库 ` database.php ` 配置
45
+ - 修改数据库 ` permission.php ` 的` adapter ` 适配器为laravel适配器
46
+
47
+ #### 🔰 (2) 创建 ` casbin_rule ` 数据表
46
48
``` sql
47
49
CREATE TABLE `casbin_rule ` (
48
50
` id` BIGINT ( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT,
@@ -64,7 +66,7 @@ CREATE TABLE `casbin_rule` (
64
66
) ENGINE = INNODB CHARSET = utf8mb4 COMMENT = ' 策略规则表' ;
65
67
```
66
68
67
- 📚 ** (3) 配置 ` config/redis ` 配置**
69
+ #### 📚 (3) 配置 ` config/redis ` 配置
68
70
69
71
## 重启webman
70
72
You can’t perform that action at this time.
0 commit comments