Download the PHP package tech-djoin/laravel-admin-ext-google-authenticator without Composer
On this page you can find all versions of the php package tech-djoin/laravel-admin-ext-google-authenticator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tech-djoin/laravel-admin-ext-google-authenticator
More information about tech-djoin/laravel-admin-ext-google-authenticator
Files in tech-djoin/laravel-admin-ext-google-authenticator
Package laravel-admin-ext-google-authenticator
Short Description Google Authenticator extension for laravel-admin
License MIT
Homepage https://github.com/tech-djoin/laravel-admin-google-authenticator
Informations about the package laravel-admin-ext-google-authenticator
Laravel Admin Google Authenticator
Two-Factor Authentication (2FA) extension for Laravel Admin using Google Authenticator.
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
-
Install the package via Composer:
-
Publish assets and configuration:
-
Customize the configuration file in
config/google2fa.phpas needed. -
Run migrations:
-
Override the
Administrator.phpfile in the/vendor/encore/laravel-admin/src/Auth/Databasedirectory and update your admin user model (usually inApp/Models/AdminUser.php): -
Update
config/admin.php: - Install PHP Imagick extension for QR code generation.
Configuration (Optional)
You can configure the extension by editing config/google2fa.php or setting values in your .env file:
Installing Imagick PHP Extension
Windows
- Download and extract files from PECL Imagick Extension.
- Copy
php_imagick.dllto the PHPextfolder. - Copy all
.dllfiles from thebinfolder to the main PHP folder. - Edit
php.ini, add the lineextension=imagick. - Restart the web server.
Linux (Ubuntu/Debian)
-
Update repository:
-
Install Imagick:
- PHP 7.x:
sudo apt install php-imagick - PHP 8.x:
sudo apt install php8.x-imagick
- PHP 7.x:
- Restart web server:
- Apache:
sudo systemctl restart apache2 - Nginx:
sudo systemctl restart nginx
- Apache:
Verify the installation by running php -m | grep imagick.
All versions of laravel-admin-ext-google-authenticator with dependencies
encore/laravel-admin Version ^1.8
laravel/framework Version ^8.75
pragmarx/google2fa-laravel Version ^2.0
simplesoftwareio/simple-qrcode Version ^4.2
paragonie/constant_time_encoding Version ^1.0|^2.0