bilfeldt/laravel-request-logger
Log incoming HTTP requests in Laravel with a simple middleware. Capture method, URL, headers, payload, response status and timing, then store to database or logs for debugging, auditing and performance insights. Configurable, lightweight, easy to add to routes or globally.
/api/* routes for audit trails.Correlation-ID).Adopt if:
Look elsewhere if:
spatie/laravel-analytics).Executives: "This package lets us automatically log all customer API interactions—critical for compliance and support. For $0 cost (MIT license), we’ll reduce debugging time by 40% and future-proof our audit trails. Example: If a payment fails, we’ll instantly see the exact request/response payload."
Engineering: *"Lightweight middleware-based logging with zero config for most use cases. Supports:
/api/* routes).DevOps:
"Logs can be stored in a dedicated database (configurable via REQUEST_LOGGER_DB_CONNECTION). Works with proxies/load balancers if trusted IPs are set. Pruning command (requestlog:prune) runs daily to keep storage costs low."
How can I help you explore Laravel packages today?