1 | <?php |
||
10 | trait Input |
||
11 | { |
||
12 | /** |
||
13 | * Check if the request input has the OTP. |
||
14 | * |
||
15 | * @return mixed |
||
16 | */ |
||
17 | 1 | protected function inputHasOneTimePassword() |
|
21 | |||
22 | /** |
||
23 | * @return mixed |
||
24 | */ |
||
25 | protected function getInputOneTimePassword() |
||
26 | { |
||
27 | return $this->getRequest()->input($this->config('otp_input')); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return mixed |
||
32 | */ |
||
33 | abstract public function getRequest(); |
||
34 | |||
35 | /** |
||
36 | * @param $string |
||
37 | * @param array $children |
||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | abstract protected function config($string, $children = []); |
||
42 | } |
||
43 |