# Routes

Source: https://laraport.app/docs/routes/

> Every route of a Laravel app from route:list as a table with its method, URI, name, controller and middleware, filtered as you type.

**Routes** on the Laravel tab lists the app's routes from `php artisan route:list --json` as a table.

*Screen: The routes of a Laravel app, filtered to the order routes*

## Columns

| Column | Shows |
|---|---|
| method | `GET`, `POST`… A `GET` route is shown without the `HEAD` that comes with it |
| uri | The path, with its parameters |
| name | The route name, or `NULL` |
| action | The controller and method, without the `App\Http\Controllers\` prefix, or `Closure` |
| middleware | The route's middleware |
| domain | Shown only when a route has one |

## Keys

| Key | Action |
|---|---|
| `/` | Filter as you type. `esc` clears the filter |
| `enter` | One route in full |
| `v` | Hide or show the routes that packages register (`--except-vendor`) |
| `r` | Read the routes again |

The filter matches every word anywhere in the route, so `POST orders`, `auth:sanctum` or `OrderController` each narrow the list.

## When the app does not boot

Warnings printed before the JSON, such as PHP deprecations, are skipped. If the app cannot boot, the screen shows its error instead of the table.
