EasyAdmin CURD命令大全
生活随笔
收集整理的這篇文章主要介紹了
EasyAdmin CURD命令大全
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
常用命令
# 生成ea_test_goods表的CURD php think curd -t test_goods# 生成ea_test_goods表的CURD, 文件沖突時(shí)強(qiáng)制覆蓋 php think curd -t test_goods -f 1# 刪除ea_test_goods表的CURD php think curd -t test_goods -d 1# 生成ea_test_goods表的CURD, 控制器在目錄demo下的Goods.php文件 php think curd -t test_goods -c demo/Goods# 生成ea_test_goods表的CURD, 模型在目錄demo下的Goods.php文件 php think curd -t test_goods -m demo/Goods# 生成ea_test_goods表的CURD, 并關(guān)聯(lián)ea_test_cate表, 并設(shè)置外鍵為cate_id php think curd -t test_goods -r test_cate --foreignKey=cate_id --primaryKey=id# 生成ea_test_goods表的CURD, 并關(guān)聯(lián)ea_test_cate表, 并設(shè)置只顯示title,image兩個(gè)字段 php think curd -t test_goods -r test_cate --foreignKey=cate_id --relationOnlyFileds=title,image# 生成ea_test_goods表的CURD, 并關(guān)聯(lián)ea_test_cate表, 并設(shè)置主表外鍵cate_id在表單的下拉選擇顯示的關(guān)聯(lián)表的title字段 php think curd -t test_goods -r test_cate --foreignKey=cate_id --relationBindSelect=title# 生成ea_test_goods表的CURD, 并設(shè)置logo字段后綴為單圖片 php think curd -t test_goods --imageFieldSuffix=logo# 生成ea_test_goods表的CURD, 并設(shè)置忽略remark, stock字段 php think curd -t test_goods --ignoreFields=remark --ignoreFields=stock參數(shù)介紹
| -t | --table=VALUE | 主表名 |
| -c | --controllerFilename=VALUE | 控制器文件名 |
| -m | --modelFilename=VALUE | 主表模型文件名 |
| -f | --force=VALUE | 強(qiáng)制覆蓋模式 |
| -d | --delete=VALUE | 刪除模式 |
| --checkboxFieldSuffix=VALUE | 復(fù)選框字段后綴 | |
| --radioFieldSuffix=VALUE | 單選框字段后綴 | |
| --imageFieldSuffix=VALUE | 單圖片字段后綴 | |
| --imagesFieldSuffix=VALUE | 多圖片字段后綴 | |
| --fileFieldSuffix=VALUE | 單文件字段后綴 | |
| --filesFieldSuffix=VALUE | 多文件字段后綴 | |
| --dateFieldSuffix=VALUE | 時(shí)間字段后綴 | |
| --switchFields=VALUE | 開關(guān)的字段 | |
| --selectFileds=VALUE | 下拉的字段 | |
| --editorFields=VALUE | 富文本的字段 | |
| --sortFields=VALUE | 排序的字段 | |
| --ignoreFields=VALUE | 忽略的字段 | |
| -r | --relationTable=VALUE | 關(guān)聯(lián)表名 |
| --foreignKey=VALUE | 關(guān)聯(lián)外鍵 | |
| --primaryKey=VALUE | 關(guān)聯(lián)主鍵 | |
| --relationOnlyFileds=VALUE | 關(guān)聯(lián)模型中只顯示的字段 | |
| --relationBindSelect=VALUE | 關(guān)聯(lián)模型中的字段用于主表外鍵的表單下拉選擇 | |
| --relationModelFilename=VALUE | 關(guān)聯(lián)模型文件名 |
總結(jié)
以上是生活随笔為你收集整理的EasyAdmin CURD命令大全的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: R语言绘制简单条形图
- 下一篇: MT5 EA交易期货-挂单撤单