Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JorgeJimenez's avatar

POST Request from POSTMAN returns empty

Hi Guys, I've just fixed my problem with csrf but now I am trying to send a post request from postman and if I try dd('store'), it works fine and I can see this result in postman. However, if I try with:

    public function store(Request $request)
    {
        dd($request->all());
    }

my result is that [], I can't see my data http://screencast.com/t/Edp7QAPmNwYL

0 likes
6 replies
bashy's avatar
bashy
Best Answer
Level 65

You're sending those as HEADER key/values? Should use RAW (JSON) or use the form-data boxes.

Example of form-data

Example of JSON

4 likes
JorgeJimenez's avatar

My god, maybe I am so tired. I work all the time with that. Thank you @bashy for your time.

kamleshcgtechno's avatar

@BASHY - here what do you mean by example of form-data and example of JSON? BTW i am using PUT method and want to submit data of name, email and a file on server by PUT api. Kindly suggest me how can i do? Now i am getting null as submitted data of all fields. Thanks in advance.

Please or to participate in this conversation.