bitsoflove / asgardgenerators
该软件包已被废弃,不再维护。未建议替代软件包。
该软件包尚未发布版本,且信息有限。
README
Asgard generators 在给定的 Asgard 模块内使用数据库作为模板来构建 CRUD(创建/读取/更新/删除)结构。
生成项
- Eloquent 模型(实体)
- 仓库
- 控制器
- 后端路由
- 后端视图
版本
dev
安装
将此仓库克隆到您的 AsgardCMS 项目的 Modules 目录中。
添加依赖项
将以下内容添加到 composer.json
"require-dev": {
"xethron/migrations-generator": "dev-l5",
"way/generators": "dev-feature/laravel-five-stable",
"user11001/eloquent-model-generator": "~2.0"
}
您还需要指向 way/generators 仓库的分叉。有关更多信息,请参阅 Xethron/migrations-generator。
"repositories": [
{
"type": "git",
"url": "git@github.com:jamisonvalenta/Laravel-4-Generators.git"
}
]
接下来,运行 composer update
接下来,将以下服务提供者添加到您的 config/app.php
Way\Generators\GeneratorsServiceProvider::class,
Xethron\MigrationsGenerator\MigrationsGeneratorServiceProvider::class,
User11001\EloquentModelGenerator\EloquentModelGeneratorProvider::class,
待办事项
- 添加测试
- 添加翻译
- 添加关系字段生成
许可协议
MIT
自由软件,太棒了!