class
Illuminate
/
Http
/
Response
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Response
Extends
-
Symfony\...\Response
Uses
Methods
public
__construct ( $content , $status , array $headers ) : void
Create a new HTTP response.
Parameters
- $content mixed
- $status int
- $headers array
public
setContent ( mixed $content ) : $this
Set the content on the response.
Parameters
- $content mixed
protected
shouldBeJson ( $content ) : bool
Determine if the given content should be turned into JSON.
Parameters
- $content mixed
protected
morphToJson ( $content ) : string
Morph the given content into JSON.
Parameters
- $content mixed