unnovate / json-editor
JSON Editor for Laravel-admin
v1.0.12
2025-05-11 06:52 UTC
Requires
- php: ^8.2.0
- encore/laravel-admin: dev-master
This package is auto-updated.
Last update: 2025-05-11 06:54:44 UTC
README
This is a laravel-admin
extension that integrates JSON Editor into laravel-admin
.
DEMO Login using admin/admin
Screenshot
Installation
composer require unnovate/json-editor php artisan vendor:publish --tag=laravel-admin-json-editor
Update
composer require unnovate/json-editor php artisan vendor:publish --tag=laravel-admin-json-editor --force
Configuration
In the extensions
section of the config/admin.php
file, add some configuration that belongs to this extension.
'extensions' => [ 'json-editor' => [ // set to false if you want to disable this extension 'enable' => true, 'config' => [ 'mode' => 'tree', 'modes' => ['code', 'form', 'text', 'tree', 'view'], // allowed modes ], ] ]
More configurations can be found at JSON Editor.
Usage
Use it in the form form:
$form->json('content');
More resources
License
Licensed under The MIT License.