承接 hasanweb/blueprint 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hasanweb/blueprint

最新稳定版本:0.0.15

Composer 安装命令:

composer require hasanweb/blueprint

包简介

scaffold your app

README 文档

README

scaffold your app with ease.

Installation

first install the package

composer require hasanweb/blueprint --dev

then run this command

php artisan blueprint:make path/to/your/json/file

Json file Syntax

{
    "migrations": {
        "[tableName]": {
            "[tableColumnName]": {
                "type": "string",
                "attributes": {
                    "unique": true,
                    "constraint": "",
                    "nullable": "hello",
                    ...
                }
            }
        }
    },

    "models": {
        "[modelName]": {
            "fillable": ["name", "email"],
            "relations": {
                "[relationType]": ["relationName"]
            }
        }
    },


    "with-controller-resources" : true,
    "with-filament-resources": true
}

Anything inside [] is a placeholder. else is a keyword that should't be changed. The order of attributes is the way that it will be written (unique(true)->constraint()->nullable("hello")...). Empty string is the default value.

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-09-04