snowsoft/json-editor

JSON Editor for Laravel-admin

v1.0.10 2023-01-27 11:08 UTC

This package is auto-updated.

Last update: 2024-04-27 14:00:01 UTC


README

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

DEMO Login using admin/admin

Screenshot

45437866-4d478200-b6e8-11e8-930b-7665ad407096.png

Installation

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

Update

composer require snowsoft/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.