PHPackages                             wareon/laraveladminemail2factor - 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. wareon/laraveladminemail2factor

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

wareon/laraveladminemail2factor
===============================

Add email based two factor authentication to laravel-admin

1.0.2(1y ago)03MITPHPPHP &gt;=7.0.0

Since Sep 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wareon/laraveladminemail2factor)[ Packagist](https://packagist.org/packages/wareon/laraveladminemail2factor)[ Docs](https://github.com/wareon/laraveladminemail2factor)[ RSS](/packages/wareon-laraveladminemail2factor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)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 wareon/laraveladminemail2factor

```

### 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

21

—

LowBetter than 19% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

3

Last Release

615d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec1590afc29384d4516e4406f88851fa69390dc522faabc3a21a3a7eeab831a9?d=identicon)[wareon](/maintainers/wareon)

---

Tags

extensionlaravel-admin

### Embed Badge

![Health badge](/badges/wareon-laraveladminemail2factor/health.svg)

```
[![Health](https://phpackages.com/badges/wareon-laraveladminemail2factor/health.svg)](https://phpackages.com/packages/wareon-laraveladminemail2factor)
```

###  Alternatives

[james.xue/login-captcha

laravel-admin 登录验证码

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

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

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

Add captcha and login attempts for laravel-admin

142.1k](/packages/manzhouya-auth-attempts)[ghost/google-authenticator

Google 两步验证码

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

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

102.5k](/packages/iamtong-laravel-admin-login-check-safe)

PHPackages © 2026

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