PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Naif Alshaye   Random Laravel Nova Password Field   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Random Laravel Nova Password Field
Display a password field in Laravel Nova
Author: By
Last change:
Date: 5 years ago
Size: 918 bytes
 

Contents

Class file image Download

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:

<h4>Add the below to Nova/User.php resource:</h4>

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
         

<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 for more information.