A Laravel Nova password field with generating random password option
naif/generate-password is a Laravel package for a laravel nova password field with generating random password option.
It currently has 18 GitHub stars and 85.197 downloads on Packagist (latest version v1.4).
Install it with composer require naif/generate-password.
Discover more Laravel packages by naif
or browse all Laravel packages to compare alternatives.
Last updated
A Laravel Nova password field with generating random password option
You can install the package in to a Laravel app that uses Nova via composer:
composer require naif/generate-password
use Naif\GeneratePassword\GeneratePassword;
and add in the fields
GeneratePassword::make('Password')
->onlyOnForms()
->creationRules('required', 'string', 'min:6')
->updateRules('nullable', 'string', 'min:6')
->length(12) //You can specifiy the password length here
->excludeRules(['Symbols']) //exclude characters types from password
//(Symbols, Numbers. Uppercase, Lowercase), do not call method to include all types
<img src="https://raw.githubusercontent.com/naifalshaye/nova-random-password-generation/master/screenshots/screen.gif" width="700">
## Support:
naif@naif.io
https://www.linkedin.com/in/naif
## License:
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.