title: Axios is sending array instead of json object in post request
body: <p>I am trying to send a post request using axios from Vuejs front-end to Laravel in backend.</p>
  <pre><code>const data = {
              file: {id}
          }
  
          axios.post('api/documents/remove', data).then((response) =&gt; {
                  console.log(response.data);
              }
          }).catch(err =&gt; { console.log(err.response.data); })
  </code></pre>
  <p>In laravel, I am printing the request like this,</p>
  <pre><code> public function removeFile(Request $request)
   { 
      dd($request);
   }
  </code></pre>
  <p>This is my output.</p>
  <pre><code>Illuminate\Http\Request {#51
    #json: Symfony\Component\HttpFoundation\ParameterBag {#43
    #parameters: array:8 [
    &quot;file&quot; =&gt; array:1 [
      &quot;id&quot; =&gt; 61
    ]
  }
  </code></pre>