# 路由与控制器

通常Web应用程序框架通过HTTP(S)接收来自用户的请求并做出响应,这就意味着定义应用程序的路由是学习Web框架的首要并且重要的问题,没有路由,你几乎没有任何能力与用户进行交互.

在本章中，我们将研究Laravel中的路由；您将看到如何定义它们，如何将它们指向它们应该执行的代码，以及如何使用Laravel的路由工具来处理各种路由需求。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://liseen315.gitbook.io/laravel/lu-you-yu-kong-zhi-qi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
