This is a laravel-admin
extension that integrates JSON Editor into laravel-admin
.
DEMO Login using admin/admin
composer require jxlwqq/json-editor
php artisan vendor:publish --tag=laravel-admin-json-editor
composer require jxlwqq/json-editor
php artisan vendor:publish --tag=laravel-admin-json-editor --force
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.
Use it in the form form:
$form->json('content');
Licensed under The MIT License.