PHPackages                             tech-djoin/laravel-admin-ext-google-authenticator - 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. tech-djoin/laravel-admin-ext-google-authenticator

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

tech-djoin/laravel-admin-ext-google-authenticator
=================================================

Google Authenticator extension for laravel-admin

v1.0.1(1y ago)1141MITPHPPHP ^7.4|^8.0

Since Oct 16Pushed 1y agoCompare

[ Source](https://github.com/tech-djoin/laravel-admin-google-authenticator)[ Packagist](https://packagist.org/packages/tech-djoin/laravel-admin-ext-google-authenticator)[ Docs](https://github.com/tech-djoin/laravel-admin-google-authenticator)[ RSS](/packages/tech-djoin-laravel-admin-ext-google-authenticator/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Admin Google Authenticator
==================================

[](#laravel-admin-google-authenticator)

Two-Factor Authentication (2FA) extension for [Laravel Admin](https://github.com/z-song/laravel-admin) using Google Authenticator.

Features
--------

[](#features)

- Enable/Disable 2FA for individual admin users
- QR code scanning for easy setup
- Verification page for 2FA codes
- Configurable settings via .env file
- Middleware protection for admin routes

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

[](#installation)

1. Install the package via Composer:

    ```
    composer require tech-djoin/laravel-admin-ext-google-authenticator
    ```
2. Publish assets and configuration:

    ```
    php artisan vendor:publish --provider="TechDjoin\LaravelAdminGoogleAuthenticator\GoogleAuthenticatorServiceProvider" --tag="config"
    ```
3. Customize the configuration file in `config/google2fa.php` as needed.
4. Run migrations:

    ```
    php artisan migrate
    ```
5. Override the `Administrator.php` file in the `/vendor/encore/laravel-admin/src/Auth/Database` directory and update your admin user model (usually in `App/Models/AdminUser.php`):

    ```
