定制 marshmallow/nova-field-string-generator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

marshmallow/nova-field-string-generator

最新稳定版本:v2.1.1

Composer 安装命令:

composer require marshmallow/nova-field-string-generator

包简介

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 Laravel Nova field for generating a random string

Installation:

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

composer require marshmallow/nova-field-string-generator
use Marshmallow\NovaGenerateString\GenerateString;

and add in the fields

GenerateString::make(__('Random string'), 'random_string')
    ->onlyOnForms()
    ->creationRules('required', 'string', 'min:12')
    ->updateRules('nullable', 'string', 'min:12')
    //You can specifiy the password length here
    ->length(12)
    //exclude characters types from password (Symbols, Numbers. Uppercase, Lowercase, Similar), do not call method to include all types
    ->excludeRules(['Symbols', 'Lowercase', 'Similar']),

GeneratePassword::make(__('Password'), 'password'),

## License:
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

统计信息

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

GitHub 信息

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

其他信息

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