PHPackages                             shanerutter/laravel-admin-email-two-factor - 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. shanerutter/laravel-admin-email-two-factor

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

shanerutter/laravel-admin-email-two-factor
==========================================

Add email based two factor authentication to laravel-admin

1.1(4y ago)22.4k↓58.3%3[1 issues](https://github.com/shanerutter/laravel-admin-email-two-factor/issues)MITPHPPHP &gt;=7.0.0

Since Feb 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/shanerutter/laravel-admin-email-two-factor)[ Packagist](https://packagist.org/packages/shanerutter/laravel-admin-email-two-factor)[ Docs](https://github.com/shanerutter/laravel-admin-email-two-factor)[ RSS](/packages/shanerutter-laravel-admin-email-two-factor/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

Email two-factor authentication for laravel-admin
=================================================

[](#email-two-factor-authentication-for-laravel-admin)

Adds two-factor authentication to admin login, admin will be sent an email with a 6-digit code to complete sign in.

### Notes

[](#notes)

A new "email" field is added to the database as laravel-admin does not have this by default. Once installed and migrations completed, you will need to set each user's email address via the database. No way of doing it via UI has been implemented at this time.

### Installation

[](#installation)

```
composer require shanerutter/laravel-admin-email-two-factor

```

### Migration

[](#migration)

Add email address field to admin users table.

```
php artisan migrate

```

### Configuration

[](#configuration)

In the extensions section of the `config/admin.php` file, add configurations

```
'extensions' => [
    'auth-email-two-factor' => [
        'enable' => (bool)env('ADMIN_AUTH_EMAIL_TWO_FACTOR', true),
        'pinLength' => (int)env('ADMIN_AUTH_EMAIL_TWO_FACTOR_PIN_LENGTH', 6),
        'rememberDays' => (bool)env('ADMIN_AUTH_EMAIL_TWO_FACTOR_REMEMBER_DAYS', 1),
    ]
]

```

In the `.env` file, add configurations

```
ADMIN_AUTH_EMAIL_TWO_FACTOR=true
ADMIN_AUTH_EMAIL_TWO_FACTOR_PIN_LENGTH=6
ADMIN_AUTH_EMAIL_TWO_FACTOR_REMEMBER_DAYS=1

```

### License

[](#license)

Licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

1586d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75e630c1907c6fcf64e8285614ed85585a9a61241b8d86eec5be0f06cf709bb9?d=identicon)[shanerutter](/maintainers/shanerutter)

---

Top Contributors

[![shanerutter](https://avatars.githubusercontent.com/u/1963677?v=4)](https://github.com/shanerutter "shanerutter (2 commits)")

---

Tags

extensionlaravel-admin

### Embed Badge

![Health badge](/badges/shanerutter-laravel-admin-email-two-factor/health.svg)

```
[![Health](https://phpackages.com/badges/shanerutter-laravel-admin-email-two-factor/health.svg)](https://phpackages.com/packages/shanerutter-laravel-admin-email-two-factor)
```

###  Alternatives

[james.xue/login-captcha

laravel-admin 登录验证码

3725.6k](/packages/jamesxue-login-captcha)[asundust/auth-captcha

Sliding captcha for Laravel-Admin auth, Multiple platform support / Laravel-Admin登录 滑动验证插件 多平台支持

603.8k](/packages/asundust-auth-captcha)[manzhouya/auth-attempts

Add captcha and login attempts for laravel-admin

142.1k](/packages/manzhouya-auth-attempts)[iamtong/laravel-admin-login-check-safe

登录添加验证码，后台用户锁定，错误次数过多锁定，密码强制修改，添加密码修改记录，登录日志

122.5k](/packages/iamtong-laravel-admin-login-check-safe)[ghost/google-authenticator

Google 两步验证码

122.5k](/packages/ghost-google-authenticator)

PHPackages © 2026

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