Download the PHP package vanthao03596/laravel-password-history without Composer
On this page you can find all versions of the php package vanthao03596/laravel-password-history. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vanthao03596/laravel-password-history
More information about vanthao03596/laravel-password-history
Files in vanthao03596/laravel-password-history
Package laravel-password-history
Short Description Keep a password history of your users to prevent them from reusing the same password like Facebook, Google
License MIT
Homepage https://github.com/vanthao03596/laravel-password-history
Informations about the package laravel-password-history
Laravel password history
Keep a password history of your users to prevent them from reusing the same password, for security reasons like what Google, Apple does.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
To make an Eloquent model store password histories just add the \Vanthao03596\LaravelPasswordHistory\HasPasswordHistory
trait to it:
Validation Rules
And there is a validation rule for you to check the entire password history agaist the new password in laravel validation rules.
Cleaning up the log
After using the package for a while you might have recorded a lot of password history. This package provides an artisan command password-history:clean to clean the history.
Overwrite the months to keep per call
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- phamthao
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-password-history with dependencies
illuminate/contracts Version ^6.0 || ^7.0 || ^8.0
illuminate/database Version ^6.0 || ^7.0 || ^8.0
vanthao03596/laravel-package-tools Version ^2.0