shanerutter / laravel-admin-google-recaptcha
Add google captcha and login attempts to laravel-admin
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
- google/recaptcha: ^1.2
This package is auto-updated.
Last update: 2024-05-15 20:59:57 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).