PHPackages                             vinothmallow/laravel-password-history-validation - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. vinothmallow/laravel-password-history-validation

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

vinothmallow/laravel-password-history-validation
================================================

Prevent users from reusing recently used passwords

1.0(3y ago)015MITPHPPHP &gt;=7.1

Since Nov 27Pushed 3y agoCompare

[ Source](https://github.com/vinothmallow/laravel-password-history-validation)[ Packagist](https://packagist.org/packages/vinothmallow/laravel-password-history-validation)[ Docs](https://github.com/vinothmallow/laravel-password-history-validation)[ RSS](/packages/vinothmallow-laravel-password-history-validation/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel Password History Validation
===================================

[](#laravel-password-history-validation)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d096f6cd4072b87d68b1d379bd3524269826720d245c96dad3ec86da99c6bcc7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76696e6f74686d616c6c6f772f6c61726176656c2d70617373776f72642d686973746f72792d76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vinothmallow/laravel-password-history-validation)[![Build Status](https://camo.githubusercontent.com/aa3685a691fd643f91a2bf0e87519e662038a392b26aa2372a75798fe8ade021/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f76696e6f74686d616c6c6f772f6c61726176656c2d70617373776f72642d686973746f72792d76616c69646174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/vinothmallow/laravel-password-history-validation)[![Quality Score](https://camo.githubusercontent.com/20614680a1f06f1834dea4581616304a3a692afab0473d87ca7bfed72adfc4cd/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f76696e6f74686d616c6c6f772f6c61726176656c2d70617373776f72642d686973746f72792d76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/vinothmallow/laravel-password-history-validation)[![Total Downloads](https://camo.githubusercontent.com/0f11c04660ed2823255b76e7db3e2dafde2474eb82fba1a875228cdbee36d965/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76696e6f74686d616c6c6f772f6c61726176656c2d70617373776f72642d686973746f72792d76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vinothmallow/laravel-password-history-validation)

Prevent users from reusing recently used passwords.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require vinothmallow/laravel-password-history-validation
```

Configuration
-------------

[](#configuration)

To get started, you'll need to publish the config file, and migrate the database:

```
php artisan vendor:publish --tag=password-config
```

Modify the config file according to your project, then migrate the database

```
php artisan migrate
```

Usage
-----

[](#usage)

This package will observe the created and updated event of the models (check the config file for settings) and records the password hashes automatically.

In Your Form Request or Inline Validation, All You Need To Do Is Instantiate The `NotFromPasswordHistory` class passing the current user as an argument

```
