RedirectResponse
class RedirectResponse extends RedirectResponse (View source)
Traits
Properties
mixed | $original | The original content of the response. |
from ResponseTrait |
Throwable|null | $exception | The exception that triggered the error response (if applicable). |
from ResponseTrait |
static protected array | $macros | The registered string macros. |
from Macroable |
protected Request | $request | The request instance. |
|
protected Store | $session | The session store instance. |
Methods
Forward a method call to the given object.
Forward a method call to the given object, returning $this if the forwarded call returned itself.
Throw a bad method call exception for the given method.
Get the original response content.
Set a header on the Response.
Add an array of headers to the response.
Expire a cookie when sending the response.
Mix another object into the class.
Dynamically handle calls to the class.
Dynamically bind flash data in the session.
Flash a piece of data to the session.
Add multiple cookies to the response.
Flash an array of input to the session.
Remove all uploaded files form the given input array.
Flash an array of input to the session.
Flash an array of input to the session.
Flash a container of errors to the session.
Parse the given errors into an appropriate value.
Add a fragment identifier to the URL.
Remove any fragment identifier from the response URL.
Get the request instance.
Get the session store instance.
Details
protected mixed
forwardCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object.
protected mixed
forwardDecoratedCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object, returning $this if the forwarded call returned itself.
static protected never
throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
$this
withoutCookie(Cookie|mixed $cookie, string|null $path = null, string|null $domain = null)
Expire a cookie when sending the response.
protected array
removeFilesFromInput(array $input)
Remove all uploaded files form the given input array.
$this
withErrors(MessageProvider|array|string $provider, string $key = 'default')
Flash a container of errors to the session.
protected MessageBag
parseErrors(MessageProvider|array|string $provider)
Parse the given errors into an appropriate value.