| 1 | <?php |
||
| 5 | trait Input |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Check if the request input has the OTP. |
||
| 9 | * |
||
| 10 | * @return mixed |
||
| 11 | */ |
||
| 12 | protected function inputHasOneTimePassword() |
||
| 16 | |||
| 17 | protected function getInputOneTimePassword() |
||
| 18 | { |
||
| 19 | return $this->getRequest()->input($this->config('otp_input')); |
||
| 20 | } |
||
| 21 | |||
| 22 | abstract public function getRequest(); |
||
| 23 | |||
| 24 | abstract protected function config($string, $children = []); |
||
| 25 | } |
||
| 26 |