1 | <?php |
||
17 | class CaptchaValidate |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @var Captcha |
||
22 | */ |
||
23 | protected $captcha; |
||
24 | |||
25 | |||
26 | public function __construct(Captcha $captcha) |
||
30 | |||
31 | /** |
||
32 | * @param Request $request |
||
33 | * @param Closure $next |
||
34 | * @param string $name |
||
35 | * @return mixed |
||
36 | * @throws InvalidCaptcha |
||
37 | */ |
||
38 | public function handle(Request $request, Closure $next, $name = null) |
||
50 | |||
51 | /** |
||
52 | * 返回用户输入的验证码 |
||
53 | * @param Request $request |
||
54 | * @return string |
||
55 | */ |
||
56 | protected function getCaptcha(Request $request) |
||
60 | } |