dodsoftware/dynamic-field-hints-for-backpack 问题修复 & 功能扩展

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

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

dodsoftware/dynamic-field-hints-for-backpack

Composer 安装命令:

composer require dodsoftware/dynamic-field-hints-for-backpack

包简介

Easily add field hints to Backpack CRUD fields from database comments.

README 文档

README


Dynamic Field Hints for Backpack 4

This package extends the Backpack for Laravel CrudPanel providing the ability to dynamically set the 'hint' value for its CRUD fields by pulling the "comment" for the related column in the database if it exists.

Notes

  • hints are only set if the method is called
  • hints are only set if the column in the db has a Comment
  • hints are not set if a hint already exists on the field
  • hints are not set if "hint" on the field is set to an empty string

Installation

Via Composer

composer require dodsoftware/dynamic-field-hints-for-backpack

If you've disabled Laravel's auto package discovery, you'll need to also add the below to your app's config/app.php file

'providers' => [
    // ...
    DoDSoftware\DynamicFieldHintsForBackpack\AddonServiceProvider::class,
];

Usage

Inside your custom CrudController:

    $this->crud->addFields($fields);
    $this->crud->setFieldHintsFromColumnComments();

Supported Databases

  • MySQL 5.6+
  • PostgreSQL 9.4+
  • SQL Server 2017+

Change log

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

Contributing

Please see contributing.md for details and a todolist.

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.

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固