put('captcha_answer', $captchaText); return $captchaText; } public function verify(string $input): bool { $expected = (string) session()->get('captcha_answer', ''); if ($expected === '') { return false; } return hash_equals($expected, $input); } public function clear(): void { session()->forget('captcha_answer'); } }