承接 normanhuth/nova-valuestore-settings 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

normanhuth/nova-valuestore-settings

最新稳定版本:1.0.1

Composer 安装命令:

composer require normanhuth/nova-valuestore-settings

包简介

A Laravel Nova tool for editing custom settings using native Nova fields.

README 文档

README

This Laravel Nova package allow you to edit a config file (JSON) by using valuestore

Requirements

"laravel/nova": "^2.0.11 || ^3.0",
"spatie/valuestore": "^1.0"

Features

  • Settings fields management in code
  • UI for editing settings
  • Rule validation support
  • Supports nova-translatable w/ rule validation

Screenshot

Settings View

Installation

Install the package in a Laravel Nova project via Composer:

composer require normanhuth/nova-valuestore-settings

Register the tool with Nova in the tools() method of the NovaServiceProvider:

// in app/Providers/NovaServiceProvider.php

public function tools()
{
    return [
        // ...
        new \NormanHuth\NovaValuestore\NovaValuestore
    ];
}

Usage

Registering fields

Define the fields in your NovaServiceProvider's boot() function by calling NovaValuestore::setSettingsFields().

        \NormanHuth\NovaValuestore\NovaValuestore::addSettingsFields([
            Text::make('Public Name'),
        ]);

Configuration

The config file can be published using the following command:

php artisan vendor:publish --provider="NormanHuth\NovaValuestore\ToolServiceProvider" --tag="config"

Config options:

    'reload_page_on_save' => false,
    'settings_file'       => config_path('settings.json'),

Password field

    NormanHuth\NovaValuestore\Fields\PlainPassword::make('ass'),
Alternative to opanegro/field-nova-password-show-hide

Install

composer require normanhuth/settings-valuestore-pwd-show-hide:dev-master

Usage:

    NormanHuth\PlainFieldNovaPasswordShowHide\PlainFieldNovaPasswordShowHide::make('ass'),

Localization

The translation file(s) can be published by using the following command:

php artisan vendor:publish --provider="NormanHuth\NovaValuestore\ToolServiceProvider" --tag="translations"

You can add your translations to resources/lang/vendor/nova-settings/ by creating a new translations file with the locale name (ie et.json) and copying the JSON from the existing en.json.

Credits

This Package is a fork of optimistdigital/nova-settings

License

Nova Valuestore Settings and Nova Settings is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 67
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-21