PHP code example of jyjob / lumen-code-generator
1. Go to this page and download the library: Download jyjob/lumen-code-generator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jyjob / lumen-code-generator example snippets
$app->register(jyjob\LumenCodeGenerator\Providers\LumenCodeGeneratorProvider::class);
shell script
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