hasanweb / blueprint
该包的最新版本(0.0.15)没有可用的许可证信息。
搭建您的应用程序
0.0.15
2024-09-26 09:07 UTC
Requires
- php: *
- fakerphp/faker: ^1.23
- illuminate/console: ^11.22
- illuminate/support: ^11.22
- symfony/console: ^7.1
README
轻松搭建您的应用程序。
安装
首先安装此包
composer require hasanweb/blueprint --dev
然后运行此命令
php artisan blueprint:make path/to/your/json/file
JSON文件语法
{
"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
}
方括号[]中的内容是占位符。否则是关键字,不应更改。属性的顺序是它们将被写入的顺序(unique(true)->constraint()->nullable("hello")...)。空字符串是默认值。