class Illuminate / Http / Response

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