nsavinov / nova-json-schema-field
A Laravel Nova field for JSON Schema
Installs: 90 300
Dependents: 0
Suggesters: 0
Security: 0
Stars: 26
Watchers: 1
Forks: 1
Open Issues: 3
Language:Vue
pkg:composer/nsavinov/nova-json-schema-field
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2025-10-17 12:58:11 UTC
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"
}
}
}
