I also do not know where to get: reCAPTCHA_site_key if there is any?
add reCAPTCHA_site_key in your .env file and call it like this
{{ env('reCAPTCHA_site_key') }}
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I am trying to utilize this recatcha:
https://developers.google.com/recaptcha/docs/v3
but do not know how to?
This is what I did so far:
<script src="https://www.google.com/recaptcha/api.js"></script>
....
<div class="form-group">
<label class="control-label col-sm-2" for="pwd">Pesan:</label>
<div class="col-sm-10">
<textarea id="pesan" name="pesan" class="form-control"></textarea>
</div>
</div>
<button class="g-recaptcha"
data-sitekey="reCAPTCHA_site_key"
data-callback='onSubmit'
data-action='submit'>Submit</button>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>
<script>
function onSubmit(token) {
document.getElementById("pesan").submit();
}
</script>
I also do not know where to get: reCAPTCHA_site_key if there is any?
Eventually solved this one, yet I am using this recaptcha instead:
https://packagist.org/packages/biscolab/laravel-recaptcha
This is the docs: https://laravel-recaptcha-docs.biscolab.com/docs/intro
Please or to participate in this conversation.