This repository has been archived by the owner on Feb 17, 2022. It is now read-only.
Version 3.0
This new version is a total rewrite of the Captchavel packages. It has removed any frontend script and now allows your app to receive reCAPTCHA v2 challenges or v3 response scores.
About the frontend, I will leave it to the developer. There is no single script that can handle every reCAPTCHA scenario, specially on SPA. You should implement it yourself, and it's said it's quite easy.
What's changed?
- Middlewares name. There are
recaptcha.v2
andrecaptcha.v3
middlewares. - You can fake responses using
is_robot
.
What's added?
- Fake responses for unit testing and local development using the facade.
- Default testing reCAPTCHA v2 keys for local development.
captchavel()
helper to output reCAPTCHA Site Key (needed for your frontend reCAPTCHA script).ReCaptchaResponseReceived
event, firing on success or failure.
What's removed?
- All frontend scripts.
- Support for Laravel 6.
- Google Official SDK. It now uses the underlying Laravel HTTP Client.
What's fixed?
- My mental health.