Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
N

Password Generation Field

Installation Instructions

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:


GeneratePassword::make('Password')
    ->onlyOnForms()
    ->creationRules('required', 'string', 'min:6')
    ->updateRules('nullable', 'string', 'min:6')
    ->length(12), //You can specifiy the password length here

Support:

naif@naif.io

https://www.linkedin.com/in/naif

License:

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

Readme

Nova Random Password Generation Field

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.

Reviews

By Eugene van der Merwe on March 20, 2020

It's fantastic package, everything was thought about including excluding difficult characters like Symbols etc. Not crazy about the presentation but functionality is perfect. If you're struggling to get it working with Laravel 6, change replace ->onlyOnForms() to ->hideFromIndex()->hideFromDetail()

Back to Top
Added 7 years ago
Last updated 6 Years Ago
Version v1.4
Composer
naif/generate-password
GitHub stars 18
Packagist downloads 77,325

Favorites

11 users favorited

Rating

3.00
(out of 5)
★★★★★
★★★★
★★★
★★
2 ratings

Tags

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas