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.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2iAJXaE
via IFTTT
Aucun commentaire:
Enregistrer un commentaire