title: Laravel api post data returned null
body: <p>I want to upload a file via post method using postman, After sending the request i read the request data and it's <strong>empty</strong>!</p>
  <p>Code:</p>
  <pre class="lang-php prettyprint-override"><code>/**
       * Store a newly created resource in storage.
       *
       * @param  \Illuminate\Http\Request  $request
       * @return \Illuminate\Http\Response
       */
      public function store(Request $request)
      {
          return response()-&gt;json([&quot;dbug&quot; =&gt; $request-&gt;all()],200); // request is empty!!!
          // return dd($request);
          $validator = Validator::make($request-&gt;input()-&gt;all(), [
              &quot;name&quot; =&gt; [&quot;required&quot;, &quot;string&quot;],
              &quot;type&quot; =&gt; [&quot;required&quot;, &quot;string&quot;],
              &quot;file&quot; =&gt; [&quot;required&quot;,&quot;file&quot;, &quot;size:&lt;=1048576&quot;] // maximum file size is 1 GB
          ]);
  
          if($validator-&gt;fails()){
              return response()-&gt;json([&quot;error&quot; =&gt; $validator-&gt;errors()], 400);
          }
          $date = date(&quot;ymddhiss&quot;);
          return response()-&gt;json([&quot;dbug&quot; =&gt; $date],200);
      }
  </code></pre>
  <p>In postman, I'm using form-data to upload a file. Could you please help me?</p>