shanerutter / laravel-admin-google-recaptcha
Add google captcha and login attempts to laravel-admin
Package info
github.com/shanerutter/laravel-admin-google-recaptcha
Language:Blade
pkg:composer/shanerutter/laravel-admin-google-recaptcha
1.1
2022-02-15 15:44 UTC
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
- google/recaptcha: ^1.2
This package is auto-updated.
Last update: 2026-03-16 01:16:28 UTC
README
Add google recaptcha v3 and login attempts to laravel-admin
Installation
composer require shanerutter/laravel-admin-google-recaptcha
Configuration
In the extensions section of the config/admin.php file, add configurations
'extensions' => [
'auth-google-recaptcha' => [
'enable' => (bool)env('ADMIN_RECAPTCHA_ENABLED', true),
'maxAttempts' => 5,
'decayMinutes' => 5,
'recaptchaPublicKey' => env('ADMIN_RECAPTCHA_SITE_KEY', ''),
'recaptchaPrivateKey' => env('ADMIN_RECAPTCHA_SECRET_KEY', ''),
]
]
In the .env file, add configurations
ADMIN_RECAPTCHA_ENABLED=true
ADMIN_RECAPTCHA_SITE_KEY="...."
ADMIN_RECAPTCHA_SECRET_KEY="...."
License
Licensed under The MIT License (MIT).