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: about 1 month ago
JSON representation
JSON Editor for Laravel-admin
- Host: GitHub
- URL: https://github.com/laravel-admin-extensions/json-editor
- Owner: laravel-admin-extensions
- License: mit
- Created: 2018-09-12T15:43:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-22T05:18:53.000Z (over 3 years ago)
- Last Synced: 2024-11-02T19:33:51.843Z (about 1 month ago)
- Topics: editor, json, laravel-admin
- Language: PHP
- Size: 333 KB
- Stars: 31
- Watchers: 3
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - json-editor - JSON 数据编辑器 (扩展包 / 字段类扩展包)
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).