This package provides a custom secret field which can be toggled to see its value.
composer require nalingia/nova-secret-field
use Nalingia\NovaSecretField\NovaSecretField;
//...
public function fields()
{
return [
NovaSecretField::make('Name'),
];
}
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(),
];
}