Skip to content

route.matched

View Markdown

Laravel matched a route before running the controller.

Source Routing Category Request Fields 6 honeybadger-laravel

Fields

6
FieldTypeDescription
event_typestringAllowed value: route.matched.
uristringRoute URI pattern, e.g. "users/{id}".
methodsstringComma-separated HTTP methods the route accepts.
handlerstringController@method string or closure class name.
namestring | nullNamed route, if defined.
requestIdstringCorrelation ID for the request, set by the AssignRequestId middleware via Laravel's shared log context. The value comes from the Request-Id or X-Request-Id request header, or is a generated UUID. Present only when that middleware is enabled.

Example

{
"event_type": "route.matched",
"uri": "users/{id}",
"methods": "GET,HEAD",
"handler": "App\\Http\\Controllers\\UserController@show",
"name": "users.show",
"requestId": "f3b2c1d0-4e5a-4b6c-8d7e-9f0a1b2c3d4e"
}