You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installation, you should see a googlerecaptcha/googlerecaptcha.blade file in your views folder and googlerecaptchav3.php in your app/config folder.
21
45
22
-
Please see the [changelog](changelog.md) for more information on what has changed recently.
46
+
If you want to change the default template, please check Advanced Usage.
23
47
24
-
## Testing
25
48
26
-
```bash
27
-
$ composer test
49
+
## Basic Usage
50
+
#### Setting up your Google reCAPTCHA details
51
+
52
+
Please register all details on host_name, site_key, secret_key and site_verify_url.
53
+
54
+
Specify your Score threshold in score_setting, e.g.
55
+
56
+
[
57
+
'action' => 'contact_us', // Google reCAPTCHA required paramater
58
+
'id' => 'contactus_id', // your HTML input field id
59
+
'threshold' => 0.2, // score threshold
60
+
'is_enabled' => false // if this is true, the system will do score comparsion against your threshold for the action
61
+
]
62
+
63
+
Note: if you want to enable Score Comparision, you also need to enable is_score_enabled to be true.
64
+
65
+
Remember to turn on the service by enable is_service_enabled to be true.
66
+
67
+
For more details please check comments in config file.
68
+
69
+
#### Validation Class
70
+
71
+
You can use provided Validation object to verify your reCAPTCHA.
72
+
73
+
```php
74
+
use RyanDeng\GoogleReCaptcha\Validations\GoogleReCaptchaValidationRule
0 commit comments