ametsuramet/suprb-cms-builder
Composer 安装命令:
composer require ametsuramet/suprb-cms-builder
包简介
CMS Builder for Laravel 5.7+
README 文档
README
INSTALL
So easy to install! Install with composer:
composer require "ametsuramet/suprb-cms-builder:dev-master"
PUBLISH CMS JSON FILE
php artisan vendor:publish --tag=cmsbuilder-json --force
EDIT JSON FILE
edit cmsbuilder.json
[
{
"name": "Book",
"softdelete": false,
"primaryKey": null,
"resource": true,
"relations": [
{"type": "belongs_to", "target":"Category"}
],
"schema": [
{
"field": "title",
"type": "string",
"nullable": true,
"searchable": true,
"default": "NULL",
"form_type": "text",
"options": []
},
{
"field": "description",
"type": "text",
"nullable": true,
"searchable": true,
"default": "NULL",
"form_type": "textarea",
"options": []
},
{
"field": "picture",
"type": "string",
"nullable": true,
"searchable": false,
"default": "NULL",
"form_type": "file",
"options": []
},
{
"field": "author_id",
"type": "integer:unsigned",
"nullable": true,
"searchable": false,
"default": "NULL",
"form_type": "select",
"options": [
{"value": 1, "label": "user 1"},
{"value": 2, "label": "user 2"}
]
},
{
"field": "category_id",
"type": "integer:unsigned",
"nullable": true,
"searchable": false,
"default": "NULL",
"form_type": "select",
"options": []
},
{
"field": "publish",
"type": "boolean",
"nullable": true,
"searchable": false,
"default": "true",
"form_type": "radio",
"options": [
{"value": 1, "label": "option 1"},
{"value": 2, "label": "option 2"}
]
}
]
}
]
USE
Generate CMS
php artisan cms:generate
TODO
- MIGRATION
- MODEL
- VIEW
- CONTROLLER
- ROUTE
- REQUEST
- PERMISSION
- JWT-Support
- Swagger-Support
- Faker
- Socialite
- Update Feature
CREDITS
统计信息
- 总下载量: 180
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-24