承接 norman-huth/nova-secret-field 相关项目开发

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

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

norman-huth/nova-secret-field

最新稳定版本:1.0.2

Composer 安装命令:

composer require norman-huth/nova-secret-field

包简介

This package provides a custom secret field that can be toggled to see its value.

README 文档

README

This package provides a custom secret field that can be toggled to see its value.

index
detail
edit

Install

composer require norman-huth/nova-secret-field

Usage

use NormanHuth\SecretField\SecretField;

class Client extends Resource
{
    // ...
    public function fields(NovaRequest $request): array
    {
        return [
            SecretField::make(__('Token'), 'token'),
        ];
    }

Options

Same as a text field and disable „copy to clipboard“ method:

SecretField::make(__('Token'), 'token')->disableClipboard(),

Translate/Message text

Default:

{
    "Copied": "Kopiert",
    "Copying failed": "Kopieren fehlgeschlagen"
}

Change messages

SecretField::make(__('Token'), 'token')
    ->copiedMsg(__('Copied'))
    ->failedMsg(__('Copying failed')),

Misc

For Nova 3:
nalingia/nova-secret-field

More Laravel Nova Packages

Stand With Ukraine

Woman. Life. Freedom.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 3
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-21