Skip to content

Commit ababede

Browse files
committed
updated readme
1 parent 58354fa commit ababede

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,24 @@ Example Usage
248248
GoogleReCaptchaV3::verifyResponse($value,$ip)->getMessage();
249249
GoogleReCaptchaV3::verifyResponse($value)->isSuccess();
250250
GoogleReCaptchaV3::verifyResponse($value)->toArray();
251-
GoogleReCaptchaV3::setAction($action)->verifyResponse($value)->isSuccess();
252251
```
253252

253+
254254
``` php
255255
GoogleReCaptchaV3::verifyResponse($request->input('g-recaptcha-response'), $request->getClientIp())->getMessage()
256256
```
257257

258+
259+
``` php
260+
GoogleReCaptchaV3::setAction($action)->verifyResponse($value)->isSuccess();
261+
```
262+
263+
If you manually assign a value to setScore($score), the code will fully skip your config file and force to check the score.
264+
265+
``` php
266+
GoogleReCaptchaV3::setScore($score)->setAction($action)->verifyResponse($request->input('g-recaptcha-response'), $request->getClientIp())->getMessage()
267+
```
268+
258269
## Sample Use Case
259270

260271
Register your action in config, also enable score and set up your own site key and secret key:

0 commit comments

Comments
 (0)