Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wealook/generate-laravel-code
https://github.com/wealook/generate-laravel-code
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/wealook/generate-laravel-code
- Owner: wealook
- Created: 2019-09-26T01:24:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-02T07:35:16.000Z (about 5 years ago)
- Last Synced: 2024-11-06T10:35:47.476Z (3 months ago)
- Language: PHP
- Size: 42 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
zhuce $app->register('Wealook\Generate\GenerateServiceProvider');
```
#生成model文件
produce:model {name} {--table=} {--connection=} {{--force}}
```* name 名称 Admin\\Config 带命名空间的 生成时model名与表名无关
* --table=表名
* --connection 数据库连接名称,不传使用默认链接
* --force 强制覆盖已有文件
***
```
#生成model service repository controller route 文件
produce:model_sr {name} {--table=} {--connection=} {--resource} {--route=web}
```
* name 名称 Admin\\Config
* --table=表名
* --connection 数据库连接名称
* --resource resource风格路由
* --route 路由文件 默认web
* --view 视图文件目录(相对于resources/views) 分别生成 index.blade.php create.blade.php show.blade.php edit.blade.php***
---
---