Looking to hire Laravel developers? Try LaraJobs

laravel-admin-google-recaptcha maintained by shanerutter

Description
Add google captcha and login attempts to laravel-admin
Author
Last update
2022/02/15 17:04 (dev-master)
License
Downloads
63

Comments
comments powered by Disqus

Google Recaptcha v3 and Login attempts for laravel-admin

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).