Let say that this is the payload of a request:
{name : 'John', age: 42}
You can get all paramters with Request::all()
.
How do I get request payload correctyly if payload is a primitive type like true
or 42
?
Request::getContent()
receives them as strings, I want them to be in correct type as well.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire