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

ActiveLibrary

mawuekom/laravel-password-history
=================================

Allows you to store users password history

v1.6.0(3y ago)11571MITPHPPHP ^7.2|^7.3|^7.4|^8.0|^8.1|^8.2

Since Aug 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mawuva/laravel-password-history)[ Packagist](https://packagist.org/packages/mawuekom/laravel-password-history)[ Docs](https://github.com/mawuva/laravel-password-history)[ RSS](/packages/mawuekom-laravel-password-history/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (3)Dependencies (4)Versions (12)Used By (1)

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

[](#laravel-password-history)

This package allows to store users password history and check if the user can use the same for updating or not. Then, you can tell your users when they will be going to create a new password for their accounts if they can use an already used password or not.

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

[](#installation)

You can install the package via composer:

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

Usage
-----

[](#usage)

Once install, go to `config/app.php` to add `PasswordHistoryServiceProvider` in providers array

Laravel 5.5 and up Uses package auto discovery feature, no need to edit the `config/app.php` file.

- #### Service Provider

    [](#service-provider)

```
'providers' => [

    ...

    Mawuekom\PasswordHistory\PasswordHistoryServiceProvider::class,

],
```

- #### Publish Assets

    [](#publish-assets)

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

Or you can publish config

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

#### Configuration

[](#configuration)

- You can change connection for models, models path and there is also a handy pretend feature.
- There are many configurable options which have been extended to be able to configured via `.env` file variables.
- Editing the configuration file directly may not needed because of this.
- See config file: [password-history.php](https://github.com/mawuva/laravel-password-history/blob/main/config/password-history.php).

```
