日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

EasyAdmin CURD命令大全

發布時間:2023/12/29 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 EasyAdmin CURD命令大全 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

常用命令

# 生成ea_test_goods表的CURD php think curd -t test_goods# 生成ea_test_goods表的CURD, 文件沖突時強制覆蓋 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, 并關聯ea_test_cate表, 并設置外鍵為cate_id php think curd -t test_goods -r test_cate --foreignKey=cate_id --primaryKey=id# 生成ea_test_goods表的CURD, 并關聯ea_test_cate表, 并設置只顯示title,image兩個字段 php think curd -t test_goods -r test_cate --foreignKey=cate_id --relationOnlyFileds=title,image# 生成ea_test_goods表的CURD, 并關聯ea_test_cate表, 并設置主表外鍵cate_id在表單的下拉選擇顯示的關聯表的title字段 php think curd -t test_goods -r test_cate --foreignKey=cate_id --relationBindSelect=title# 生成ea_test_goods表的CURD, 并設置logo字段后綴為單圖片 php think curd -t test_goods --imageFieldSuffix=logo# 生成ea_test_goods表的CURD, 并設置忽略remark, stock字段 php think curd -t test_goods --ignoreFields=remark --ignoreFields=stock

參數介紹

短參長參說明
-t--table=VALUE主表名
-c--controllerFilename=VALUE控制器文件名
-m--modelFilename=VALUE主表模型文件名
-f--force=VALUE強制覆蓋模式
-d--delete=VALUE刪除模式
--checkboxFieldSuffix=VALUE復選框字段后綴
--radioFieldSuffix=VALUE單選框字段后綴
--imageFieldSuffix=VALUE單圖片字段后綴
--imagesFieldSuffix=VALUE多圖片字段后綴
--fileFieldSuffix=VALUE單文件字段后綴
--filesFieldSuffix=VALUE多文件字段后綴
--dateFieldSuffix=VALUE時間字段后綴
--switchFields=VALUE開關的字段
--selectFileds=VALUE下拉的字段
--editorFields=VALUE富文本的字段
--sortFields=VALUE排序的字段
--ignoreFields=VALUE忽略的字段
-r--relationTable=VALUE關聯表名
--foreignKey=VALUE關聯外鍵
--primaryKey=VALUE關聯主鍵
--relationOnlyFileds=VALUE關聯模型中只顯示的字段
--relationBindSelect=VALUE關聯模型中的字段用于主表外鍵的表單下拉選擇
--relationModelFilename=VALUE關聯模型文件名

總結

以上是生活随笔為你收集整理的EasyAdmin CURD命令大全的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。