Method | Description | |
---|---|---|
__construct ( mixed $data, integer $status = 200 ) | Create a console response with the given data. |
Method | Description | |
---|---|---|
encode ( mixed $data ) : string | Encode the provided data to JSON. |
public __construct ( mixed $data, integer $status = 200 ) | ||
$data | mixed | Data to convert to string |
$status | integer | Integer status code for the response; 200 by default. |