PHPackages                             imanghafoori/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. imanghafoori/laravel-password-history

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

imanghafoori/laravel-password-history
=====================================

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

v1.0.3(1y ago)70221.8k↓28.1%28[2 issues](https://github.com/imanghafoori1/laravel-password-history/issues)[2 PRs](https://github.com/imanghafoori1/laravel-password-history/pulls)1MITPHPPHP ^7.1.3|7.2.\*|7.3.\*|7.4.\*|8.\*CI failing

Since Feb 28Pushed 1y ago2 watchersCompare

[ Source](https://github.com/imanghafoori1/laravel-password-history)[ Packagist](https://packagist.org/packages/imanghafoori/laravel-password-history)[ Docs](https://github.com/imanghafoori1/laravel-password-history)[ RSS](/packages/imanghafoori-laravel-password-history/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (5)Versions (11)Used By (1)

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.

[![StyleCI](https://camo.githubusercontent.com/0b907708e7c633d3e04093b8c62df3392febbfa1765b5ad391d36287ca4532cc/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3133393730393531382f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/139709518)[![Latest Stable Version](https://camo.githubusercontent.com/a6d3dc776486e99fcca7f1bb9005241722ebcded34ddeb39b878873bd2699767/68747470733a2f2f706f7365722e707567782e6f72672f696d616e676861666f6f72692f6c61726176656c2d70617373776f72642d686973746f72792f762f737461626c65)](https://packagist.org/packages/imanghafoori/laravel-password-history)[![Daily Downloads](https://camo.githubusercontent.com/150e3ec1c143e669d8329f55bd0c16bb391863b7b2490586da6a361c7c0bc981/68747470733a2f2f706f7365722e707567782e6f72672f696d616e676861666f6f72692f6c61726176656c2d70617373776f72642d686973746f72792f642f6461696c79)](https://packagist.org/packages/imanghafoori/laravel-password-history)[![Total Downloads](https://camo.githubusercontent.com/50477636fbef9f56f516b2ce60108862fc287cc0e8eacf7e625c873605c412cb/68747470733a2f2f706f7365722e707567782e6f72672f696d616e676861666f6f72692f6c61726176656c2d70617373776f72642d686973746f72792f646f776e6c6f616473)](https://packagist.org/packages/imanghafoori/laravel-password-history)[![Software License](https://camo.githubusercontent.com/7b9d0faf11330a88ea80a58ccf5491f699d5edf7ddac76ad40e2a9dc6a77fd76/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d726f756e642d737175617265)](LICENSE.md)[![Imports](https://github.com/imanghafoori1/laravel-password-history/actions/workflows/check_imports.yml/badge.svg?branch=master)](https://github.com/imanghafoori1/laravel-password-history/actions/workflows/check_imports.yml)

Installation:
-------------

[](#installation)

```
composer require imanghafoori/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.

```
