payload = $payload; $request->userid = $payload['userid'] ?? null; return $next($request); } }