PHP code example of vanthao03596 / laravel-password-history
1. Go to this page and download the library: Download vanthao03596/laravel-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/ */
vanthao03596 / laravel-password-history example snippets
return [
/**
* The table name to save your password histories.
*/
'table_name' => 'password_histories',
/*
* The fully qualified class name of the password_histories model.
*/
'password_history_model' => \Vanthao03596\LaravelPasswordHistory\Models\PasswordHistory::class,
/*
* The number of months you want to check against new password.
*/
'months_to_check' => 12,
];
use Illuminate\Database\Eloquent\Model;
use Vanthao03596\LaravelPasswordHistory\HasPasswordHistory;
class YourModel extends Model
{
use HasPasswordHistory;
...
}