Skip to content

Commit 8cb04d7

Browse files
authored
Update README.md
1 parent 716a9cd commit 8cb04d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ If you want to change the default template, please check Advanced Usage.
5353
Please register all details on host_name, site_key, secret_key and site_verify_url.
5454

5555
Specify your Score threshold and action in 'setting', e.g.
56-
56+
``` php
5757
[
5858
'action' => 'contact_us', // Google reCAPTCHA required paramater
5959
'id' => 'contactus_id', // your HTML input field id
6060
'threshold' => 0.2, // score threshold
6161
'is_enabled' => false // if this is true, the system will do score comparsion against your threshold for the action
6262
]
63-
63+
```
6464
Note: if you want to enable Score Comparision, you also need to enable is_score_enabled to be true.
6565

6666
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
9999

100100
You can use provided Validation object to verify your reCAPTCHA.
101101

102-
```
102+
``` php
103103
use RyanDeng\GoogleReCaptcha\Validations\GoogleReCaptchaValidationRule
104104
$rule = [
105105
'g-recaptcha-response' => [new GoogleReCaptchaValidationRule('action_name',$ip)]
@@ -117,7 +117,7 @@ Note: all values should be registered in googlerecaptchav3 config file in 'setti
117117
#### Facade Class
118118

119119

120-
```
120+
``` php
121121
GoogleReCaptchaV3::setAction($action)->verifyResponse($response, $ip);
122122
```
123123

0 commit comments

Comments
 (0)