ak73gucas / json-editor
用于 Laravel-admin 的 JSON 编辑器
1.0.8
2020-07-16 03:39 UTC
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
README
这是一个将 JSON 编辑器 集成到 laravel-admin
的 laravel-admin
扩展。
DEMO 使用 admin/admin
登录
截图
安装
composer require ak73gucas/json-editor php artisan vendor:publish --tag=laravel-admin-json-editor
更新
composer require ak73gucas/json-editor php artisan vendor:publish --tag=laravel-admin-json-editor --force
配置
在 config/admin.php
文件的 extensions
部分中,添加属于此扩展的配置。
'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 ], ] ]
更多配置信息请查看 JSON Editor。
用法
在表单中使用它
$form->json('content');
更多资源
许可
在 MIT 许可证 下授权。