stephanus-tantiono/json-column-for-backpack 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stephanus-tantiono/json-column-for-backpack

Composer 安装命令:

composer require stephanus-tantiono/json-column-for-backpack

包简介

A Json Column column for Backpack

README 文档

README

Latest Version on Packagist Total Downloads

This package provides an advanced json column type for the Backpack for Laravel administration panel. The main features as opposed to Backpack's stock json column are that:

  • you can expand and collapse values in the json keys;
  • the keys and values are of a different colours;

If your JSON is small, the json column in backpack core is likely sufficient for your needs. But if you have a large JSON, this column will really shine.

Screenshots

https://user-images.githubusercontent.com/52034225/167371557-63eef12b-09c7-49c8-a41a-fc503d3b6908.gif

Installation

Via Composer

composer require stephanus-tantiono/json-column-for-backpack

Usage

Inside your custom CrudController:

$this->crud->addColumn([
    'name'  => 'column_name',
    'type'  => 'view',
    'view' => 'json-column-for-backpack::columns.json',
]);

Overwriting

If you need to change the column in any way, you can easily publish the file to your app, and modify that file any way you want. But please keep in mind that you will not be getting any updates.

Step 1. Copy-paste the blade file to your directory:

# create the columns directory if it's not already there
mkdir -p resources/views/vendor/backpack/crud/columns

# copy the blade file inside the folder we created above
cp -i vendor/stephanus-tantiono/json-column-for-backpack/src/resources/views/columns/json.blade.php resources/views/vendor/backpack/crud/columns/json_viewer.blade.php

Step 2. Load the published file instead of the one in the vendor directory:

$this->crud->addColumn([
    'name'  => 'column_name',
    'type'  => 'json_viewer',
]);

Step 3. Uninstall this package. Since it only provides one file - json.blade.php, and you're no longer using that file, it makes no sense to have the package installed:

composer remove stephanus-tantiono/json-column-for-backpack

Change log

Please see the changelog for more information on what has changed recently.

Security

If you discover any security related issues, please email the author instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 1
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固