title: Is it possible to submit an array of objects?
body: <p>I'm using Laravel 5.3, and I'm having trouble submitting arrays of objects to my controller. Is it possible? And if not, is there a workaround so that I can submit multiple objects at once?</p>
  
  <p>Example request:</p>
  
  <pre><code>let req = {
      'data[]': [
          { id: 1, name: 'test1' },
          { id: 2, name: 'test2' }
      ]
  };
  </code></pre>
  
  <p>Then, to test, I simply returned the contents of the request:</p>
  
  <pre><code>public function testArray(Request $request) {
      return response()-&gt;json($request-&gt;all());
  }
  </code></pre>
  
  <p>And got this result:</p>
  
  <pre><code>data: [
      "[object Object]",
      "[object Object]"
  ]
  </code></pre>