Package Data | |
---|---|
Maintainer Username: | lihuiwang |
Maintainer Contact: | 373275156@qq.com (jyjob) |
Package Create Date: | 2022-04-25 |
Package Last Update: | 2022-08-16 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-02-05 15:02:56 |
Package Statistics | |
---|---|
Total Downloads: | 14 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
lumen代码生成,目前仅支持特定项目生成,内部使用
composer安装
$ composer require jyjob/lumen-code-generator
在app.php添加服务提供者
$app->register(jyjob\LumenCodeGenerator\Providers\LumenCodeGeneratorProvider::class);
php artisan make:xbull_admin Help
请输入命名空间,分层级例如:Help/Help:
> xb_help
请输入对应的数据库表表名,例如:xb_help,需要表前缀:
> xb_help
请输入对应的功能名称用于备注,例如:帮助中心:
> 帮助中心
请输入需要生成的代码层级:1.model 2.repository 3.service 4.controller 5.request_vo 6.transform
数字以逗号隔开,输入n代表都需要:
> n
请输入作者,例如:abc
> zhang san