nalingia/nova-secret-field

A Laravel Nova field.

Installs: 70 859

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 1

Language:Vue

1.1.0 2020-05-05 17:43 UTC

This package is auto-updated.

Last update: 2024-05-06 02:34:00 UTC


README

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

Latest Version on Packagist License

Installation

composer require nalingia/nova-secret-field

Usage

use Nalingia\NovaSecretField\NovaSecretField;

//...

public function fields()
{
    return [
        NovaSecretField::make('Name'),
    ];
}

Customise

The field ships with a copy-to-clipboard feature. By default, this feature is disabled but if you want to enable it, use canCopyToClipboard method on your instance.

use Nalingia\NovaSecretField\NovaSecretField;

//...

public function fields()
{
    return [
        NovaSecretField::make('Name')
            ->canCopyToClipboard(),
    ];
}