PHP code example of chrysanthos / password-history
1. Go to this page and download the library: Download chrysanthos/password-history 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/ */
chrysanthos / password-history example snippets
use Chrysanthos\PasswordHistory\Rules\NoOldPasswords;
/**
* Get the password reset validation rules.
*
* @return array
*/
protected function rules()
{
return [
'token' => ' ],
];
}
use Illuminate\Auth\Events\PasswordReset;
event(new PasswordReset($user));
bash
php artisan migrate