nalingia / nova-secret-field
A Laravel Nova field.
Installs: 77 663
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 1
Language:Vue
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-11-06 03:48:28 UTC
README
This package provides a custom secret field which can be toggled to see its value.
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(), ]; }