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();
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
4749CREATE 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
You can’t perform that action at this time.
0 commit comments