marshmallow / nova-field-string-generator
A Laravel Nova field for generating a random string. This can be used for a Text field and for a Password field.
Installs: 36 325
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 2
Open Issues: 0
Language:Vue
Requires
- php: ^8.0
- laravel/nova: ^4.0|^5.0
This package is auto-updated.
Last update: 2025-07-01 21:21:06 UTC
README
A Laravel Nova field for generating a random string
Installation:
You can install the package in to a Laravel app that uses Nova via composer:
composer require marshmallow/nova-field-string-generator
use Marshmallow\NovaGenerateString\GenerateString; and add in the fields GenerateString::make(__('Random string'), 'random_string') ->onlyOnForms() ->creationRules('required', 'string', 'min:12') ->updateRules('nullable', 'string', 'min:12') //You can specifiy the password length here ->length(12) //exclude characters types from password (Symbols, Numbers. Uppercase, Lowercase, Similar), do not call method to include all types ->excludeRules(['Symbols', 'Lowercase', 'Similar']), GeneratePassword::make(__('Password'), 'password'), ## License: The MIT License (MIT). Please see [License File](LICENSE.md) for more information.