header('X-BOTAUTH') !== env('X_BOTAUTH')) { return response('Unauthorized', 401); } return $next($request); } }