aw-studio/macrame-cli
Composer 安装命令:
composer create-project aw-studio/macrame-cli
包简介
The Laravel Zero Framework.
README 文档
README
Installation
composer global require aw-studio/macrame-cli
CRUDs
To create the required files for a new CRUD run the following commands in both of the Macrame project folders:
macli make:crud fruit
Laravel Files
Within the Laravel Admin project folder this will create the files:
/admin
admin/Http/Controllers/FruitController.phpadmin/Http/Indexes/FruitIndex.phpadmin/Http/Resources/FruitResource.php
If these files don't already exist it will also try to create app files:
/app
app/Http/Controller/FruiController.phpapp/Http/Resources/FruitResource.phpapp/Models/Fruit.php
/database/migrations
...fruits_table.php
Leaving only the view part to be created by yourself.
Vue Files
Within the Admin Vue project folder the command will generate:
src/Pages/fruit/Index.vuesrc/Pages/fruit/Show.vuesrc/Pages/fruit/routes.tssrc/Pages/fruit/components/AddFruitModal.vuesrc/entities/fruit/api.tssrc/entities/fruit/crud.form.tssrc/entities/fruit/crud.index.tssrc/entities/fruit/types.ts
It will also edit src/entities/index.ts to register the entity files and src/plugins/router.ts to register the required routes.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-27