| 1 | <?php |
||
| 13 | class Honeypot |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Handle an incoming request. |
||
| 18 | * |
||
| 19 | * @param \Illuminate\Http\Request $request |
||
| 20 | * @param \Closure $next |
||
| 21 | * @return mixed |
||
| 22 | */ |
||
| 23 | public function handle($request, Closure $next) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Throw an exception if the honeypot field is not empty. |
||
| 37 | * |
||
| 38 | * @author Andrea Marco Sartori |
||
| 39 | * @param string $value |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | protected function checkHoneypot($value) |
||
| 49 | |||
| 50 | } |
||
| 51 |