nsavinov/nova-json-schema-field
最新稳定版本:v1.0.2
Composer 安装命令:
composer require nsavinov/nova-json-schema-field
包简介
A Laravel Nova field for JSON Schema
README 文档
README
Laravel Nova field for displaying JSON schema data
Installation
You can install the package into a Laravel app that uses Nova via composer:
composer require nsavinov/nova-json-schema-field
Usage
Inside the resource:
use Nsavinov\NovaJsonSchemaField\NovaJsonSchemaField; public function fields(Request $request) { return [ // ... NovaJsonSchemaField::make('Settings', $this->schema()) ->listClass('list-reset'), // optional style class for detailed component ]; } private function schema(): array { return [ // your schema ]; }
Schema example:
{
"type": "object",
"required": [
"foo",
"bar"
],
"properties": {
"bar": {
"type": "integer"
},
"foo": {
"type": "integer",
"description": "foo"
}
}
}
统计信息
- 总下载量: 92.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 26
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-05
