xn / json-editor
Laravel-admin JSON 编辑器
dev-master
2023-07-15 10:21 UTC
Requires
- php: >=7.0.0
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-09-15 04:56:09 UTC
README
这是一个将 JSON 编辑器 集成到 laravel-admin
的 laravel-admin
扩展。
DEMO 使用 admin/admin
登录
截图
安装
composer require xn/json-editor
php artisan vendor:publish --tag=laravel-admin-json-editor
更新
composer require xn/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 许可证。