@@ -22,11 +22,12 @@ version you are going to implement.
2222
2323This package supports the following versions. Note that each version requires a different sitekey/secretkey pair:
2424
25- | ** Version** | ** Docs** | ** Notes** |
26- | ----------------------| -------------------------------------------------------------------| -----------------------------|
27- | ** v3** (recommended) | [ V3 Docs] ( https://developers.google.com/recaptcha/docs/v3 ) | |
28- | ** v2** | [ V2 Docs] ( https://developers.google.com/recaptcha/docs/display ) | |
29- | ** v2 invisible** | [ V2 Docs] ( https://developers.google.com/recaptcha/docs/invisible ) | Use ` 'size' => 'invisible' ` |
25+ | ** Version** | ** Docs** | ** Notes** |
26+ | ----------------------| -------------------------------------------------------------------| -----------------------------------|
27+ | ** v3** (recommended) | [ V3 Docs] ( https://developers.google.com/recaptcha/docs/v3 ) | |
28+ | ** v3** (enterprise) | [ V3 Docs] ( https://developers.google.com/recaptcha/docs/v3 ) | Use ` 'version' => 'v3-enterprise' ` |
29+ | ** v2** | [ V2 Docs] ( https://developers.google.com/recaptcha/docs/display ) | |
30+ | ** v2 invisible** | [ V2 Docs] ( https://developers.google.com/recaptcha/docs/invisible ) | Use ` 'size' => 'invisible' ` |
3031
3132Your options should reside in the ` config/services.php ` file:
3233
@@ -38,6 +39,7 @@ Your options should reside in the `config/services.php` file:
3839 'secret_key' => env('GOOGLE_RECAPTCHA_SECRET_KEY'),
3940 'version' => 'v3',
4041 'score' => 0.5, // An integer between 0 and 1, that indicates the minimum score to pass the Captcha challenge.
42+ 'endpoint' => 'https://www.google.com/recaptcha/api/siteverify', // For enterprise users, fill in your URL from Google Console.
4143 ],
4244 ],
4345
@@ -102,6 +104,10 @@ Secondly, add the new directive `wire:recaptcha` to the form element that you wa
102104<!-- Add the `wire:recaptcha` Livewire directive -->
103105<form wire:submit =" save" wire:recaptcha >
104106 <!-- The rest of your form -->
107+
108+ <!-- When using version 2, insert the placeholder element -->
109+ <div id =" g-recaptcha-element" ></div >
110+
105111 <button type =" submit" >Submit</button >
106112</form >
107113
0 commit comments