-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e45d4a
commit ba2c06c
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
# tp6-curd | ||
基于thinkphp6的一键curd生成controller、model、validate | ||
|
||
### 如何安装 | ||
```php | ||
composer require nickbai/tp6-curd | ||
``` | ||
|
||
### 如何使用 | ||
> php think curd -t table名 -c 控制器名 -p 模块名 | ||
|
||
`-t` 表名,你要基于哪个表生成 curd,比如 `x_node`,则输入 `-t node` | ||
`-c` 控制器名,自动生成的 `controller` 名称,比如你想要 `user` 控制器,则输入 `-c user` | ||
`-p` 模块名可选,比如你要生成到 `admin` 模块下,输入 `-p admin` | ||
|
||
> 系统会自动根据你是否建立名为 `Base` 的控制器,若没有,则会自动创建一个 `base` controller |