---
title: route.matched
description: Laravel matched a route before running the controller.
url: https://docs.honeybadger.io/insights/event-types/laravel/route.matched/
---

Laravel matched a route before running the controller.

Source **Routing** Category **Request** Fields **6** [honeybadger-laravel](https://docs.honeybadger.io/lib/php/integration/laravel/)

## Fields

| Field        | Type           | Description                                                                                                                                                                                                                                       |
| ------------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `event_type` | string         | Allowed value: `route.matched`.                                                                                                                                                                                                                   |
| `uri`        | string         | Route URI pattern, e.g. "users/{id}".                                                                                                                                                                                                             |
| `methods`    | string         | Comma-separated HTTP methods the route accepts.                                                                                                                                                                                                   |
| `handler`    | string         | Controller\@method string or closure class name.                                                                                                                                                                                                  |
| `name`       | string \| null | Named route, if defined.                                                                                                                                                                                                                          |
| `requestId`  | string         | Correlation 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

```json
{
  "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"
}
```

---

## Try Honeybadger for FREE

Intelligent logging, error tracking, and Just Enough APM™ in one dev-friendly platform. Find and fix problems before users notice.

[Start free trial](https://app.honeybadger.io/users/sign_up)

[See plans and pricing](https://www.honeybadger.io/plans/)
