ibrahem-kamal / json-field
A Laravel Nova Json field.
Installs: 34 620
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Language:Vue
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-11-09 23:23:20 UTC
README
this is just a wrapper for vue-json-field
important notes
- you need to cast your column to array
protected $casts = ['json'=>'array'];
example:
JsonField::make('Json')
->mode('view') // avaialable modes [tree,code,form,text,view] default code
->expandedOnStart(true)
->defaultJsonPath(resource_path('test.json')) // path to the json file