# redirect()->back()

由于Laravel会话实现的一些内置便利性，您的应用程序将始终了解用户以前访问过的页面是什么。 这为`redirect()->back()`重定向提供了机会，它将用户重定向到他们来自的任何页面。 还有一个全局快捷方式：`back()`


---

# 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/zhong-ding-xiang/redirect-greater-than-back.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.
