PHP code example of infinitypaul / laravel-password-history-validation

1. Go to this page and download the library: Download infinitypaul/laravel-password-history-validation 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/ */

    

infinitypaul / laravel-password-history-validation example snippets

bash
php artisan vendor:publish --tag=password-config
bash
php artisan migrate
 php

use Infinitypaul\LaravelPasswordHistoryValidation\Rules\NotFromPasswordHistory;

$this->validate($request, [
            'password' => [
                '
 php

use Infinitypaul\LaravelPasswordHistoryValidation\Traits\PasswordHistoryTrait;

class User extends Authenticatable
{
    use Notifiable, PasswordHistoryTrait;

}
 bash
php artisan password-history:clear