PHPackages                             outl1ne/nova-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. outl1ne/nova-two-factor

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

outl1ne/nova-two-factor
=======================

Nova Two Factor Authentication

412.5k↓50%1PHP

Since Oct 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/outl1ne/nova-two-factor)[ Packagist](https://packagist.org/packages/outl1ne/nova-two-factor)[ RSS](/packages/outl1ne-nova-two-factor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [![](https://github.com/outl1ne/nova-two-factor/raw/main/resources/img/nova-two-factor-banner.png?raw=true)](https://github.com/outl1ne/nova-two-factor/blob/main/resources/img/nova-two-factor-banner.png?raw=true)

[![Latest Stable Version](https://camo.githubusercontent.com/79f81fd5f6f185dbf91ea8df2943da85c882315e0eb741c962a3d603a277f781/687474703a2f2f706f7365722e707567782e6f72672f6f75746c316e652f6e6f76612d74776f2d666163746f722f76)](https://packagist.org/packages/outl1ne/nova-two-factor) [![Total Downloads](https://camo.githubusercontent.com/c19e7bfbed7aacbfed9e2c7a52386f7fbb4a683d668f9724811536d1ad32ef62/687474703a2f2f706f7365722e707567782e6f72672f6f75746c316e652f6e6f76612d74776f2d666163746f722f646f776e6c6f616473)](https://packagist.org/packages/outl1ne/nova-two-factor) [![Latest Unstable Version](https://camo.githubusercontent.com/06893826d60f18b7e8c08e55d70a984b405d8feb7e9167f0c427f6a49801a30e/687474703a2f2f706f7365722e707567782e6f72672f6f75746c316e652f6e6f76612d74776f2d666163746f722f762f756e737461626c65)](https://packagist.org/packages/outl1ne/nova-two-factor) [![License](https://camo.githubusercontent.com/b32d953cc4ef968244407f94e1c3944e6bed2a784651a6540620c8fb88c77c08/687474703a2f2f706f7365722e707567782e6f72672f6f75746c316e652f6e6f76612d74776f2d666163746f722f6c6963656e7365)](https://packagist.org/packages/outl1ne/nova-two-factor) [![PHP Version Require](https://camo.githubusercontent.com/7cea820a5316b9e533bacf9ad2b8692e6dc11ead910ec575df07ddd516192734/687474703a2f2f706f7365722e707567782e6f72672f6f75746c316e652f6e6f76612d74776f2d666163746f722f726571756972652f706870)](https://packagist.org/packages/outl1ne/nova-two-factor)

Nova-Two-Factor
===============

[](#nova-two-factor)

This [Laravel Nova](https://nova.laravel.com) package adds 2FA support to the Nova dashboard.

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

[](#requirements)

- `php: >=8.0`
- `laravel/nova: ^4.15`

Screenshots
-----------

[](#screenshots)

#### Setup 2FA

[](#setup-2fa)

[![screenshot](/resources/img/sc-1.png)](/resources/img/sc-1.png)

#### Nova login screen with 2FA security

[](#nova-login-screen-with-2fa-security)

[![screenshot](/resources/img/sc-3.png)](/resources/img/sc-3.png)

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

[](#installation)

Install the package in a Laravel Nova project via Composer and run migrations:

```
# Install nova-two-factor
composer require outl1ne/nova-two-factor

# Optionally publish the configuration and edit it
php artisan vendor:publish --provider="Outl1ne\NovaTwoFactor\TwoFactorServiceProvider" --tag="config"

# Run migrations
php artisan migrate
```

Add the Has2FA trait to your configured User model.

```
