laravue3/laravel-module-builder
最新稳定版本:0.0.9
Composer 安装命令:
composer require laravue3/laravel-module-builder
包简介
Create module in laravel
README 文档
README
Module builder can be called with params only or with a json description file. The command will not create anything if the folder exist. This is de default behaviour. If you use the force param, it will override the module content.
You can use the force param in combinaison of a specific file. This will create only that file en prevent de override of the others.
Available params
- 'all', 'a', InputOption::VALUE_NONE, 'Generate a migration, seeder, factory, policy, and resource controller for the model'
- 'controller', 'c', InputOption::VALUE_NONE, 'Create a new controller for the model'
- 'factory', 'f', InputOption::VALUE_NONE, 'Create a new factory for the model'
- 'force', null, InputOption::VALUE_NONE, 'Create the class even if the model already exists'
- 'json', null, InputOption::VALUE_REQUIRED, 'Create based on json description'
- 'migration', 'm', InputOption::VALUE_NONE, 'Create a new migration file for the model'
- 'model', 'M', InputOption::VALUE_NONE, 'Create a new model file '
- 'policy', null, InputOption::VALUE_NONE, 'Create a new policy for the model'
- 'seed', 's', InputOption::VALUE_NONE, 'Create a new seeder for the model'
- 'resource', 'r', InputOption::VALUE_NONE, 'Indicates if the generated controller should be a resource controller'
- 'repository', 'l', InputOption::VALUE_NONE, 'Create new repository class for the model'
- 'viewjs', 'j', InputOption::VALUE_NONE, 'Create new vue folder for the module'
Json description file
{ {modelName}: { fields: [ { name: {thename}, value: {thevalue}, precision: {thevalue}, scale: {thevalue}, places: {thevalue}, total: {thevalue}, length: {thevalue}, } ] } }
统计信息
- 总下载量: 2.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-05