ledc / think-model-trait
批量生成thinkPHP项目的数据表注释
v7.3.8
2025-09-20 00:52 UTC
Requires
- php: >=7.4
- ext-curl: *
- ext-json: *
- ext-redis: *
- ledc/support-sdk: ^7.4
- topthink/framework: >=6.0
- topthink/think-migration: >=3.0
- topthink/think-queue: ^3.0
This package is auto-updated.
Last update: 2026-05-20 02:23:14 UTC
README
安装
composer require ledc/think-model-trait
使用说明
生成数据表字段注释
例如:数据库配置文件config/database.php,生成 数据库连接mysql、数据表user的表注释,命令如下
php think make:trait mysql user
清空数据表
php think clear:table mysql YmdHi --file=exclude --force
帮助指令
php think make:trait -h Usage: make:trait [options] [--] <connection> <table> Arguments: connection 数据库连接名称 table 完整的数据表名称 Options: --m 同时生成模型
