Download the PHP package starfolksoftware/password-history without Composer
On this page you can find all versions of the php package starfolksoftware/password-history. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download starfolksoftware/password-history
More information about starfolksoftware/password-history
Files in starfolksoftware/password-history
Package password-history
Short Description Add password history to your laravel applications
License MIT
Homepage https://github.com/StarfolkSoftware/password-history
Informations about the package password-history
Add password history to your laravel applications
Add password history to your laravel applications
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
Registering models
With this package, you can track password history of any model. To make your
models passwordhistorable
, add the HasPasswordHistory
to the model classes as
in the following
Password history is saved to the database the moment a saved
event is fired on your model. Remember that also the saved
event is fired when you first create a model.
NotInRecentPasswordHistory
validation rule
If you want to validate that a password is not in the recent password history, you
can use the NotInRecentPasswordHistory
rule as in the following snippet:
Testing
Psalming
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
- Faruk Nasir
- All Contributors
License
The MIT License (MIT). Please see License File for more information.