PHPackages                             mjelamanov/laravel-auth-password - 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. mjelamanov/laravel-auth-password

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

mjelamanov/laravel-auth-password
================================

A laravel authenticated user's password validator.

1.1.0(5y ago)15MITPHPPHP &gt;=7.1

Since Sep 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mjelamanov/laravel-auth-password)[ Packagist](https://packagist.org/packages/mjelamanov/laravel-auth-password)[ RSS](/packages/mjelamanov-laravel-auth-password/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

Laravel auth password
=====================

[](#laravel-auth-password)

[![Build Status](https://camo.githubusercontent.com/7b4f6c1c0c648481d1ada25327f030cf75a78401e1444cf4f1414cf4f91ea81a/68747470733a2f2f7472617669732d63692e636f6d2f6d6a656c616d616e6f762f6c61726176656c2d617574682d70617373776f72642e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/mjelamanov/laravel-auth-password)[![StyleCI](https://camo.githubusercontent.com/ef0a4f96a3f4881d17c4a50f460ae159e6550634bacde653a64c7f13b4ae2732/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3231313638393036352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/211689065)[![Latest Stable Version](https://camo.githubusercontent.com/1b840344a3bb0acc8a24086e43d51b6172067c31496acfd4d4d093727f114af6/68747470733a2f2f706f7365722e707567782e6f72672f6d6a656c616d616e6f762f6c61726176656c2d617574682d70617373776f72642f76657273696f6e)](https://packagist.org/packages/mjelamanov/laravel-auth-password)[![License](https://camo.githubusercontent.com/f62e6eeb3fb1b6c5e2a33da5388e935c9aa0ef9e5137b317bc073ae6a2c9979f/68747470733a2f2f706f7365722e707567782e6f72672f6d6a656c616d616e6f762f6c61726176656c2d617574682d70617373776f72642f6c6963656e7365)](https://packagist.org/packages/mjelamanov/laravel-auth-password)

This package allows you to validate an authenticated user's password. For laravel 6.0 and above please use the native [password](https://laravel.com/docs/6.x/validation#rule-password) rule.

Table of Contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Use rule](#use-rule)
- [Use extension](#use-extension)

Requirements
------------

[](#requirements)

- PHP 7.1 or above.
- Laravel 5.8 or 6.0.

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

[](#installation)

```
composer require mjelamanov/laravel-auth-password
```

Don't forget to add the translation key bellow to your app's lang files.

```
// in resources/lang/en/validation.php

'auth_password' => 'The :attribute is not valid',
```

Use rule
--------

[](#use-rule)

Create a rule instance via [RuleFactoryInterface](https://github.com/mjelamanov/laravel-auth-password/blob/master/src/Rule/RuleFactoryInterface.php).

```
// In your controller

use Illuminate\Http\Request;
use Mjelamanov\Laravel\AuthPassword\Rule\RuleFactoryInterface;

public function changeUserPassword(Request $request, RuleFactoryInterface $ruleFactory)
{
    $this->validate($request, [
        'current_password' => ['bail', 'required', 'min:6', $ruleFactory->createRule()],
        'new_password' => 'bail|required|string|min:6',
        'new_password_confirmation' => 'bail|required|confirmed',
    ]);

    // Passwords are valid. Place your logic here.
}
```

You can specify a different guard name.

```
$ruleFactory->createRule(); // default application's guard
$ruleFactory->createRule('web');
$ruleFactory->createRule('api');

// or custom guard
$ruleFactory->createRule('admin');

$ruleFactory->createRule('non-existen'); // Throws \InvalidArgumentException
```

Use extension
-------------

[](#use-extension)

You may use the validation extension also.

```
// In your controller

public function changeUserPassword(Request $request)
{
    $this->validate($request, [
        'current_password' => 'bail|required|min:6|auth_password',
        'new_password' => 'bail|required|string|min:6',
        'new_password_confirmation' => 'bail|required|confirmed',
    ]);

    // Passwords are valid. Place your logic here.
}
```

You can also specify a different guard name.

```
'field' => 'auth_password', // default application's guard
'field' => 'auth_password:web',
'field' => 'auth_password:api',

// or custom guard
'field' => 'auth_password:admin',

'field' => 'auth_password:non_existen', // Throws \InvalidArgumentException
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~434 days

Total

2

Last Release

1982d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cba48e48dc3912d15d8c461239e4454b33bc3ffd4ac6d183dd2fbc441540beb?d=identicon)[mjelamanov](/maintainers/mjelamanov)

---

Top Contributors

[![mjelamanov](https://avatars.githubusercontent.com/u/15931507?v=4)](https://github.com/mjelamanov "mjelamanov (15 commits)")

---

Tags

authlaravelpasswordvalidationlaravelvalidatorauthpasswordcurrentauthenticated

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mjelamanov-laravel-auth-password/health.svg)

```
[![Health](https://phpackages.com/badges/mjelamanov-laravel-auth-password/health.svg)](https://phpackages.com/packages/mjelamanov-laravel-auth-password)
```

###  Alternatives

[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[tapansharma/breeze-svelte

Minimal Laravel authentication scaffolding with Svelte and Tailwind.

321.2k](/packages/tapansharma-breeze-svelte)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
