bourse stock
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chuan 054f90c580 init bource available 2 months ago
..
config init bource available 2 months ago
src init bource available 2 months ago
tests init bource available 2 months ago
.gitignore init bource available 2 months ago
README.md init bource available 2 months ago
composer.json init bource available 2 months ago
phpunit.xml init bource available 2 months ago

README.md

ThinkPHP6 模型注释和模型字段自动生成助手

功能

安装


composer require itinysun/tp-model-helper

修改 配置文件
config/console/model_help

确保已经配置了数据库连接,并且可以连接到数据库

使用方法

//更新所有模型
php think model:help

//更新指定模型
php think model:help app\model\User app\model\Post

//清理所有模型
php think model:help -C

//清理指定模型
php think model:help app\model\User  app\model\Post -C

可选参数


--clean [-C] 清理模式,根据提示清理生成的注释和字段

--overwrite [-O] 强制覆盖已有的属性注释

感谢

本项目修改自 yunwuxin/think-model-helper