post($endpoint['url'], [ 'secret' => $endpoint['secret_key'], 'response' => $value, ])->json(); if ($response['success'] === true && $response['score'] > 0.5) { return true; } return false; } /** * Get the validation error message. * * @return string */ public function message() { return 'Captcha failed. Refresh the page and try again'; } }