PHPackages                             gocrew/laravel-reauth - 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. gocrew/laravel-reauth

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

gocrew/laravel-reauth
=====================

Reauth users for sensitive parts of your app

v1.0.6(10y ago)43591[1 issues](https://github.com/pascalschwientek/laravel-reauth/issues)MITPHPPHP &gt;=5.5.0

Since Mar 1Pushed 10y ago2 watchersCompare

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

READMEChangelog (6)Dependencies (3)Versions (8)Used By (0)

Laravel ReAuth
==============

[](#laravel-reauth)

[![Build Status](https://camo.githubusercontent.com/abd312b0195b2c889632311de3c6cf7ac715811348c72e54cedd9ca3f5d24c0f/68747470733a2f2f7472617669732d63692e6f72672f676f637265772f6c61726176656c2d7265617574682e737667)](https://travis-ci.org/gocrew/laravel-reauth)[![Latest Stable Version](https://camo.githubusercontent.com/12994365f7b9edd07e9a3b5660da253db3251fa846b37816801c5414f478f1b1/68747470733a2f2f706f7365722e707567782e6f72672f676f637265772f6c61726176656c2d7265617574682f762f737461626c65)](https://packagist.org/packages/gocrew/laravel-reauth)[![Latest Unstable Version](https://camo.githubusercontent.com/2550860e9a8fcf1f1026d1a444c25bfb7326ec679559351c554cfa84d78b2d96/68747470733a2f2f706f7365722e707567782e6f72672f676f637265772f6c61726176656c2d7265617574682f762f756e737461626c65)](https://packagist.org/packages/gocrew/laravel-reauth)[![License](https://camo.githubusercontent.com/85fb2370657a422b6719288d7fa3285e44dcfd70cde9ceb4e6017aef909b81fa/68747470733a2f2f706f7365722e707567782e6f72672f676f637265772f6c61726176656c2d7265617574682f6c6963656e7365)](https://packagist.org/packages/gocrew/laravel-reauth)

Re-Auth users for sensitive parts of your app.

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

[](#installation)

### Step 1: Composer

[](#step-1-composer)

From the command line, run:

```
composer require gocrew/laravel-reauth

```

### Step 2: Service Provider

[](#step-2-service-provider)

For your Laravel app, open `config/app.php` and, within the `providers` array, append:

```
gocrew\LaravelReAuth\ServiceProvider::class

```

This will bootstrap the package into Laravel.

### Step 3: The Middleware

[](#step-3-the-middleware)

In your `app\Http\Kernel.php` file, add the reauth middleware to the `$routeMiddleware` array.

```
protected $routeMiddleware = [
    // ...
    'reauth'         => \gocrew\LaravelReAuth\Http\Middleware\Reauthenticate::class,
    // ...
];
```

Usage
-----

[](#usage)

### Basic

[](#basic)

Apply the middleware on a route you want to protect:

```
Route::get('settings', ['uses' => 'Controller@getSettings', 'middleware' => 'reauth']);
```

Done!

### Advanced

[](#advanced)

If you need a more advanced setup, no problem. Everything is overwritable and everything is as modular as possible.

TODO
----

[](#todo)

- advanced docs
- tests

License
-------

[](#license)

The contents of this repository is released under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~10 days

Total

7

Last Release

3665d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c75cfe6794291257d40a9e5e420a08c231f486ad26a0a8955f75b66786be951?d=identicon)[pascalschwientek](/maintainers/pascalschwientek)

---

Top Contributors

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

---

Tags

laravelsecurityAuthenticationreauthenticationpassword promptreauthgocrew

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gocrew-laravel-reauth/health.svg)

```
[![Health](https://phpackages.com/badges/gocrew-laravel-reauth/health.svg)](https://phpackages.com/packages/gocrew-laravel-reauth)
```

###  Alternatives

[mpociot/reauthenticate

Reauthenticate users by letting them re-enter their passwords for specific parts of your app.

30235.8k](/packages/mpociot-reauthenticate)[rinvex/laravel-authy

Rinvex Authy is a simple wrapper for Authy TOTP, the best rated Two-Factor Authentication service for consumers, simplest 2fa Rest API for developers and a strong authentication platform for the enterprise.

3376.7k1](/packages/rinvex-laravel-authy)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2011.0k](/packages/alajusticia-laravel-logins)[hosseinhezami/laravel-permission-manager

Advanced permission manager for Laravel.

403.3k](/packages/hosseinhezami-laravel-permission-manager)[sicaboy/laravel-mfa

A Laravel package of Multi-factor Authentication (MFA/2FA) with a middleware.

101.2k](/packages/sicaboy-laravel-mfa)

PHPackages © 2026

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