PHP code example of dilneiss / laravel-nist-password-rules
1. Go to this page and download the library: Download dilneiss/laravel-nist-password-rules 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/ */
dilneiss / laravel-nist-password-rules example snippets
use LangleyFoxall\LaravelNISTPasswordRules\PasswordRules;
// Register
$this->validate($request, [
'email' => 'ion
$this->validate($request, [
'email' => 'equired',
'password' => PasswordRules::changePassword($request->email, 'old_password'),
]);
// Change password, without old password
$this->validate($request, [
'password' => PasswordRules::changePassword($request->email),
]);
// Optionally change password, with old password
$this->validate($request, [
'old_password' => '