gldrenthe89/nova-string-generator-field 问题修复 & 功能扩展

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

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

gldrenthe89/nova-string-generator-field

最新稳定版本:v4.1

Composer 安装命令:

composer require gldrenthe89/nova-string-generator-field

包简介

A Laravel Nova field for generating a random string. This can be used for a Text field and for a Password field.

README 文档

README

A Nova field which can genarate a string upon creating or updating, this adds a string generator button and copy button to a Text or Password field.

Screenshot

Demo with shown password.

Demo1

Demo with 'normal' hidden password.

Demo1

Installation:

You can install the package in to a Laravel app that uses Nova via composer:

composer require gldrenthe89/nova-string-generator-field
use Gldrenthe89\NovaStringGeneratorField\NovaGenerateString;
use Gldrenthe89\NovaStringGeneratorField\NovaGeneratePassword;

// Field which extends the default Nova Text field
NovaGenerateString::make('String')
    ->length(12) // specify the generated string length (default = 10)
    ->excludeRules(['symbols']), // exclude characters types (symbols, numbers. uppercase, lowercase)

// Field which extends the default Nova Password field
NovaGeneratePassword::make('password'), // possible options are the same as above

Localization

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

php artisan vendor:publish --provider="Gldrenthe89\NovaStringGeneratorField\NovaStringGeneratorFieldServiceProvider" --tag="translations"

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

License:

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 8
  • 开发语言: Vue

其他信息

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