title: Axios send formData in controller return object object
body: <p>//Vuejs2
  //Laravel v7.x</p>
  <p>I turn to you because I'm blocking, I can't find a solution.
  I want to recover the data in my object in my controller.
  In my View.vue I make an axios post</p>
  <pre><code>     data() {
          return {
            customer: {
               name: 'abc',
               login: 'def'
            },
            file: null
          }
      },methods: {
          submit(){
              let formData = new FormData();
              formData.append(&quot;customer&quot;, this.customer);
              formData.append(&quot;file&quot;, this.file);
  
              axios.post('/project/new',
                          formData, {
                              headers: {
                                  &quot;Content-Type&quot;: &quot;multipart/form-data&quot;
                              }
                          }).then(data =&gt; {
                          console.log(data.data);
                      });
          }
      }
  </code></pre>
  <p>I collect like that in my controller</p>
  <pre><code>public function postProject(Request $request)
  {
      return $request-&gt;customer;  //return [Object Object]
      return $request-&gt;customer-&gt;name;  //return Trying to get property 'name' of non-object
      return $request-&gt;customer['name']; //return Illegal string offset 'name'
      return $request-&gt;file;  //return [Object Object]
  }
  </code></pre>
  <p>Thx for help. have a nice day.</p>