jxlwqq/json-editor

JSON Editor for Laravel-admin

Installs: 65 117

Dependents: 0

Suggesters: 0

Security: 0

Stars: 31

Watchers: 2

Forks: 16

Open Issues: 1

pkg:composer/jxlwqq/json-editor

v1.0.8 2020-10-09 01:04 UTC

This package is auto-updated.

Last update: 2025-09-22 14:44:59 UTC


README

This is a laravel-admin extension that integrates JSON Editor into laravel-admin.

DEMO Login using admin/admin

Screenshot

Installation

composer require jxlwqq/json-editor
php artisan vendor:publish --tag=laravel-admin-json-editor

Update

composer require jxlwqq/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

Awesome Laravel-admin

License

Licensed under The MIT License.