PHP code example of assisted-mindfulness / pwned-validator

1. Go to this page and download the library: Download assisted-mindfulness/pwned-validator 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/ */

    

assisted-mindfulness / pwned-validator example snippets


'pwned' => 'The :attribute is not secure enough',

'pwned' => 'Your password is insufficiently secure as it has been found at least :min times in known password breaches, please choose a new one.',

return Validator::make($data, [
    'name'     => 'nique:users',
    'password' => '

return Validator::make($data, [
    'name'     => 'nique:users',
    'password' => ['

'password' => '

'password' => ['