samedi 12 mars 2016

Laravel. The Response content must be a string or object implementing __toString(), "boolean" given

This is my array.

http://ift.tt/1LYjjVz

When I return this array like this, I get an error.

return \Response::json($response, 200, [], JSON_NUMERIC_CHECK);

However, when I remove JSON_NUMERIC_CHECK, I get the response; but the problem is I need numeric values.

What could be done to resolve this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire