jeudi 1 mars 2018

How can I set a response using a var?

In the laravel docs it has:

return response($content);

What format is $content?

I want to return it via a var like so:

$res = [null, 204];
return response($res);

But the above fails, just returns a 200.

How can I set a response using a var?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire