优化描述文档
This commit is contained in:
@@ -133,7 +133,7 @@
|
||||
|--------------|------------------------|----------------------------------|
|
||||
| 数据库配置 | `config/database.php` | `config/thinkorm.php` |
|
||||
| 默认连接 | `config('database.default')` | `config('thinkorm.default')` |
|
||||
| 根路径 | `root_path()` | `root_path()`(同,指向 dafuweng-webman 项目根) |
|
||||
| 根路径 | `root_path()` | `root_path()`(同,指向 webman-builadmin 项目根) |
|
||||
| 控制器初始化 | `initialize()` 自动调用 | 在 `initializeBackend` 中调用 `$this->initialize()` |
|
||||
| XSS 过滤 | `$request->filter('clean_xss')` | `$inputFilter = 'clean_xss'`,由 Backend trait 在 add/edit 时应用 |
|
||||
|
||||
@@ -147,7 +147,7 @@
|
||||
- `$value` 有值:按自定义路径解析,会去掉 `app/$app/$type` 前缀
|
||||
- 预设:`admin`→`auth/admin`,`admin_rule`→`auth/rule` 等
|
||||
|
||||
**示例(表名 `xxx_yyy_zzz`,均相对于 dafuweng-webman 项目根):**
|
||||
**示例(表名 `xxx_yyy_zzz`,均相对于 webman-builadmin 项目根):**
|
||||
|
||||
| 配置项 | 默认值 | 公共模型时 |
|
||||
|------------------|------------------------------------------|----------------------------------------|
|
||||
|
||||
Reference in New Issue
Block a user