Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/laravel-admin-extensions/json-editor

JSON Editor for Laravel-admin
https://github.com/laravel-admin-extensions/json-editor

editor json laravel-admin

Last synced: 10 days ago
JSON representation

JSON Editor for Laravel-admin

Lists

README

        

# JSON Editor extension for laravel-admin

This is a `laravel-admin` extension that integrates [JSON Editor](https://github.com/josdejong/jsoneditor) into `laravel-admin`.

[DEMO](https://demo.laravel-admin.org/auth/login) Login using `admin/admin`

## Screenshot

## Installation

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

## Update
```bash
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.
```php
'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](https://github.com/josdejong/jsoneditor).

## Usage

Use it in the form form:
```php
$form->json('content');
```

## More resources

[Awesome Laravel-admin](https://github.com/jxlwqq/awesome-laravel-admin)

## License

Licensed under [The MIT License](LICENSE).