Setup
With you can selectv2 checkbox
, v2 invisible
and v3
reCAPTCHA.
Go to your .env
file and update the keys for versions you want to use.
RECAPTCHA_ENABLED
to true
in your .env
.
Default version is set to v3
(reCAPTCHA v3). To update default version add RECAPTCHA_VERSION
to your .env
file and set its value to checkbox
(I’m not a robot checkbox) or invisible
(Invisible reCAPTCHA v2 badge).
Passing score for v3
is set to 0.5
by default. To update score add RECAPTCHA_V3_SCORE
to your .env
file and set its value to desired score.
How to use it?
Go to reCAPTCHA dashboard https://www.google.com/recaptcha/admin/create Copy and paste generated keys to.env
file.
You can find working example in
LoginForm.vue
component.Import and define recaptcha
Render component
Get token
Validate token with Google
Add this tou your form request or validator.validate
and validated
methods: