class Response extends Response (View source)
| ResponseTrait |
| mixed | $original | The original content of the response. | from ResponseTrait |
| Exception|null | $exception | The exception that triggered the error response (if applicable). | from ResponseTrait |
| int | status() Get the status code for the response. | from ResponseTrait |
| string | content() Get the content of the response. | from ResponseTrait |
| mixed | getOriginalContent() Get the original response content. | from ResponseTrait |
| $this | header(string $key, array|string $values, bool $replace = true) Set a header on the Response. | from ResponseTrait |
| $this | withHeaders(HeaderBag|array $headers) Add an array of headers to the response. | from ResponseTrait |
| $this | cookie(Cookie|mixed $cookie) Add a cookie to the response. | from ResponseTrait |
| $this | withCookie(Cookie|mixed $cookie) Add a cookie to the response. | from ResponseTrait |
| $this | withException(Exception $e) Set the exception to attach to the response. | from ResponseTrait |
| throwResponse() Throws the response in a HttpResponseException instance. | from ResponseTrait | |
| $this | setContent(mixed $content) Set the content on the response. | |
| bool | shouldBeJson(mixed $content) Determine if the given content should be turned into JSON. | |
| string | morphToJson(mixed $content) Morph the given content into JSON. |
Get the status code for the response.
Get the content of the response.
Get the original response content.
Set a header on the Response.
Add an array of headers to the response.
Add a cookie to the response.
Add a cookie to the response.
Set the exception to attach to the response.
Throws the response in a HttpResponseException instance.
Set the content on the response.
Determine if the given content should be turned into JSON.
Morph the given content into JSON.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Http/Response.html