bakerkretzmar/nova-settings-tool
Composer 安装命令:
composer require bakerkretzmar/nova-settings-tool
包简介
A Laravel Nova tool to manage application settings.
README 文档
README
Store and edit simple app-wide settings right in Nova. Settings are stored as JSON using spatie/valuestore, making them really easy to pull in and use everywhere else in your app.
Installation
Install the package via Composer in any Laravel app using Nova:
composer require bakerkretzmar/nova-settings-tool
Nova Settings Tool v2 requires Nova 4—for older versions of Nova, use v1 of this package.
Publish the default configuration file to config/nova-settings-tool.php:
php artisan vendor:publish --tag="nova-settings-tool"
Register the tool with Nova in the tools method of your NovaServiceProvider:
// in app/Providers/NovaServiceProvider.php use Bakerkretzmar\NovaSettingsTool\SettingsTool; // ... public function tools() { return [ new SettingsTool, ]; }
Usage
Settings are declared in a nova-settings-tool.php config file. This file specifies where settings are stored, what the tool’s title is in Nova’s sidebar, the layout of the settings page, and metadata about the settings themselves.
A default config file with some helpful examples is included as a starting point:
Each item in the settings array is rendered as an input with a label and help text, similar to one of Nova’s fields. Settings can also be grouped into panels, to separate them visually.
The settings’ actual values are stored as JSON at the location specified in the config file—storage/app/settings.json by default.
There are currently six available setting types:
text: Single-line text inputtextarea: Multi-line text inputtoggle: Boolean switchcode: CodeMirror text editornumber: Number inputselect: Single-select dropdown
All strings in this package, and any you pass to it, can easily be translated using Laravel’s built-in localization features.
This tool also fires an event any time any settings are changed, with all the old and new settings attached.
Roadmap
The following features are planned or in development:
colorsetting typedatesetting typefilesetting type- setting validation
bakerkretzmar/nova-settings-tool 适用场景与选型建议
bakerkretzmar/nova-settings-tool 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 224.24k 次下载、GitHub Stars 达 164, 最近一次更新时间为 2019 年 01 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「nova」 「tool」 「laravel」 「Settings」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bakerkretzmar/nova-settings-tool 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bakerkretzmar/nova-settings-tool 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bakerkretzmar/nova-settings-tool 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova card that shows you your system information.
A Laravel Nova card.
Backend Google Sign On for Magento 2
An app setting manager tool for laravel nova
A Laravel Nova package for publishable fields
A Laravel Nova package for translatable fields
统计信息
- 总下载量: 224.24k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 164
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-14
