PHPackages                             stratio84/laravel-password-history - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. stratio84/laravel-password-history

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

stratio84/laravel-password-history
==================================

A package to keep a history of all password changes of users

0.0.2(3y ago)022MITPHPPHP ^7.1.3|7.2.\*|7.3.\*|7.4.\*|8.\*

Since Feb 11Pushed 3y agoCompare

[ Source](https://github.com/stratio84/laravel-password-history)[ Packagist](https://packagist.org/packages/stratio84/laravel-password-history)[ Docs](https://github.com/stratio84/laravel-password-history)[ RSS](/packages/stratio84-laravel-password-history/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

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 does.

Special thanks to imanghafoori whom this library is forked from. It's all his credit!

Installation
============

[](#installation)

```
composer require stratio84/laravel-password-history

```

To publish the config file and migrate the database:

```
php artisan vendor:publish
php artisan migrate

```

Visit the `config/password_history.php` file to see all the possibilities.

Usage
=====

[](#usage)

This package will observe the `saved` event of the models (which are mentioned in the config file) and records the password hashes automatically.

```
