PHP code example of bbs-lab / laravel-password-rotation
1. Go to this page and download the library: Download bbs-lab/laravel-password-rotation 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/ */
bbs-lab / laravel-password-rotation example snippets
use BBSLab\LaravelPasswordRotation\Concerns\RotatesPassword;
use BBSLab\LaravelPasswordRotation\Contracts\MustRotatePassword;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable implements MustRotatePassword
{
use RotatesPassword;
}
// config/laravel-password-rotation.php
'redirect_route' => 'password.rotate',
// keep users able to sign out while their password is expired
'except_routes' => ['logout'],