dd(Request::instance()->getContent());
Statement display:
" ----------------------------545652777124128130660951\r\n Content-Disposition: form-data; name="firstname"\r\n \r\n fakeName\r\n ----------------------------545652777124128130660951--\r\n "
Requests are sent by postman.
title:
'Content-type': 'application/json',
'Accept': 'application/json, text/plain'
question:
Request::instance()->all();
Returns an empty array. Why?
oops
Here is the fix:
Change this header:
Content-type: multipart/form-data; border=
This is set by the postman.
This title should not be touched.