New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

gldrenthe89/nova-string-generator-field

A Laravel Nova field for generating a random string. This can be used for a Text field and for a Password field.
79,418 5
Install
composer require gldrenthe89/nova-string-generator-field
Latest Version:v4.1
Laravel:10 · 11 · 12
Older releases:7 · 8 · 9
License:MIT
Last Updated:Mar 26, 2025
Links: GitHub  ·  Packagist
Maintainer: gldrenthe89

Nova String Generation Field

A Nova field which can genarate a string upon creating or updating, this adds a string generator button and copy button to a Text or Password field.

Screenshot

Demo with shown password.

Demo1

Demo with 'normal' hidden password.

Demo1

Installation:

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

composer require gldrenthe89/nova-string-generator-field
use Gldrenthe89\NovaStringGeneratorField\NovaGenerateString;
use Gldrenthe89\NovaStringGeneratorField\NovaGeneratePassword;

// Field which extends the default Nova Text field
NovaGenerateString::make('String')
    ->length(12) // specify the generated string length (default = 10)
    ->excludeRules(['symbols']), // exclude characters types (symbols, numbers. uppercase, lowercase)

// Field which extends the default Nova Password field
NovaGeneratePassword::make('password'), // possible options are the same as above

Localization

The translation file(s) can be published by using the following publish command:

php artisan vendor:publish --provider="Gldrenthe89\NovaStringGeneratorField\NovaStringGeneratorFieldServiceProvider" --tag="translations"

You can add your translations to resources/lang/vendor/nova-string-generator-field/ by creating a new translations file with the locale name (ie et.json) and copying the JSON from the existing en.json.

License:

The MIT License (MIT). Please see License File for more information.

Related Packages

gabrielesbaiz/nova-password-toolkit

A Laravel Nova dashboard and field widget for the password-toolkit generator: br...

5,042 0
epartment/nova-dependency-container

A Laravel Nova field container allowing to depend on other fields values

4,703,233 378
eminiarts/nova-tabs

Laravel Nova - Tabs.

4,610,439 464
ebess/advanced-nova-media-library

Laravel Nova tools for managing the Spatie media library.

3,888,853 616
spatie/nova-tags-field

A tags field for Nova apps

2,356,168 301

Version History

Version Released PHP Laravel License
v4.1 ^10.0|^11.0|^12.0 MIT
v4.0 ^10.0|^11.0 MIT
v3.1 ^9.0|^10.0|^11.0 MIT
v3.0.2 ^9.0 MIT
v3.0.1 ^9.0 MIT