PHP code example of beliven-it / laravel-password-expiry
1. Go to this page and download the library: Download beliven-it/laravel-password-expiry 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/ */
beliven-it / laravel-password-expiry example snippets
namespace App\Models;
use Beliven\PasswordExpiry\Traits\HasPasswordExpiration;
class User extends Authenticatable
{
use HasPasswordExpiration;
// ... other code
}
$user->password = $password_from_request;
$user->save();
// This action create a new record in the model_password_changes table