PHP code example of unicodeveloper / laravel-password

1. Go to this page and download the library: Download unicodeveloper/laravel-password library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

unicodeveloper / laravel-password example snippets


Unicodeveloper\DumbPassword\DumbPasswordServiceProvider::class

/**
 * Get a validator for an incoming registration request.
 *
 * @param  array  $data
 * @return \Illuminate\Contracts\Validation\Validator
 */
protected function validator(array $data)
{
    return Validator::make($data, [
        'name' => '

  'dumbpwd' => 'You are using a dumb password abeg',