File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,14 @@ If you want to change the default template, please check Advanced Usage.
53
53
Please register all details on host_name, site_key, secret_key and site_verify_url.
54
54
55
55
Specify your Score threshold and action in 'setting', e.g.
56
-
56
+ ``` php
57
57
[
58
58
'action' => 'contact_us', // Google reCAPTCHA required paramater
59
59
'id' => 'contactus_id', // your HTML input field id
60
60
'threshold' => 0.2, // score threshold
61
61
'is_enabled' => false // if this is true, the system will do score comparsion against your threshold for the action
62
62
]
63
-
63
+ ```
64
64
Note: if you want to enable Score Comparision, you also need to enable is_score_enabled to be true.
65
65
66
66
Remember to turn on the service by enable is_service_enabled to be true.
@@ -99,7 +99,7 @@ Note: all values should be registered in googlerecaptchav3 config file in 'setti
99
99
100
100
You can use provided Validation object to verify your reCAPTCHA.
101
101
102
- ```
102
+ ``` php
103
103
use RyanDeng\GoogleReCaptcha\Validations\GoogleReCaptchaValidationRule
104
104
$rule = [
105
105
'g-recaptcha-response' => [new GoogleReCaptchaValidationRule('action_name',$ip)]
@@ -117,7 +117,7 @@ Note: all values should be registered in googlerecaptchav3 config file in 'setti
117
117
#### Facade Class
118
118
119
119
120
- ```
120
+ ``` php
121
121
GoogleReCaptchaV3::setAction($action)->verifyResponse($response, $ip);
122
122
```
123
123
You can’t perform that action at this time.
0 commit comments