Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function __invoke($recaptcha_response) |
||
12 | { |
||
13 | $this->secret = config('simple-recaptcha-v3.secret_key'); |
||
14 | $this->response = $recaptcha_response; |
||
15 | |||
16 | $recaptcha = file_get_contents(self::SERVICE_URL.'?secret='.$this->secret.'&response='.$this->response); |
||
17 | |||
18 | return json_decode($recaptcha); |
||
19 | } |
||
21 |