Skip to content

greensunrise/json-editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Editor extension for laravel-admin

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

DEMO Login using admin/admin

Screenshot

Installation

First, install dependencies:

composer require jxlwqq/json-editor

Then, publish the resource directory:

php artisan vendor:publish --tag=laravel-admin-json-editor

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 (MIT)] (LICENSE).

About

JSON Editor for Laravel-admin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 82.6%
  • HTML 17.4%