class
Illuminate
/
Http
/
Response
You are viewing an older version of the documentation. For the latest, please visit master documentation.
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 ( $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