ak73gucas / json-editor
JSON Editor for Laravel-admin
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 15
pkg:composer/ak73gucas/json-editor
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
README
This is a laravel-admin extension that integrates JSON Editor into laravel-admin.
DEMO Login using admin/admin
Screenshot
Installation
composer require ak73gucas/json-editor
php artisan vendor:publish --tag=laravel-admin-json-editor
Update
composer require ak73gucas/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
License
Licensed under The MIT License.
