softonic/laravel-middleware-request-id
Laravel middleware that assigns a unique request ID to every incoming request and response header, making it easy to trace requests through logs and distributed systems. Simple setup, configurable header name, and seamless Laravel integration.
RequestId::handle() return typing so the middleware can work with all response types, including JsonResponse and RedirectResponse. This removes a concrete compatibility blocker for teams upgrading to Laravel 12.Consider adoption when:
Look elsewhere or pause adoption when:
For executives: This package supports a low-cost operational hygiene capability: consistent request IDs make it easier to trace user issues, debug incidents, and correlate logs across systems. The 3.0.1 release is a targeted Laravel 12 compatibility fix, reducing upgrade friction rather than adding new product functionality. Approve it as a small reliability enabler, not a strategic platform bet.
For engineering: Release 3.0.1 fixes RequestId::handle() to type against Symfony\Component\HttpFoundation\Response, enabling covariance across Laravel response types such as JsonResponse and RedirectResponse. This is a sensible patch for Laravel 12 compatibility. Recommend upgrading where the package is already used, validating behavior across response types, and confirming the package’s tests and maintenance status before standardizing it across services.
How can I help you explore Laravel packages today?