$responder->redirect()
Shortcut to create a redirect response
$responder->redirect(string|null $location = null, int|null $code = null, bool $inherit = false): Responder
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $location | stringornull |
null
|
|
| $code | intornull |
null
|
|
| $inherit | bool |
false
|
Keep the query and params of the current request (since 5.7.0) |
Return type
This method modifies the existing $responder object it is applied to and returns it again.