naif / generate-password
A Laravel Nova password field with generating random password option
Installs: 56 371
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 1
Forks: 6
Open Issues: 4
Language:Vue
Requires
- php: >=7.1.0
This package is not auto-updated.
Last update: 2024-11-18 14:47:54 UTC
README
A Laravel Nova password field with generating random password option
Installation:
You can install the package in to a Laravel app that uses Nova via composer:
composer require naif/generate-password
Usage:
Add the below to Nova/User.php resource:
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.