Honeypot.php 344 Bytes
<?php

namespace FootyRoom\Http\Middleware;

use Closure;
use Illuminate\Http\Request;

class Honeypot
{
    public function handle(Request $request, Closure $next)
    {
        $honeypot = $request->get('honeypot');

        if ($honeypot !== null && $honeypot !== '') {
            return;
        }

        return $next($request);
    }
}