title: Laravel parameterBag as array issues when inserting
body: <p>I am trying to insert mass data but i get this error when i iterate through the request:</p>
  
  <blockquote>
    <p>Symfony\Component\Debug\Exception\FatalThrowableError Cannot use
    object of type Symfony\Component\HttpFoundation\ParameterBag as array</p>
  </blockquote>
  
  <p>Request example:</p>
  
  <pre><code>    request: Symfony\Component\HttpFoundation\ParameterBag {#52 ▼
          #parameters: array:4 [▼
          "_token" =&gt; "Z1sF2K5LHU1bsQ4l3JRaOLCTQDmJ47qakigmrfI5"
          "name" =&gt; "Rousaddasd 1"
          "secsaddsans" =&gt; array:1 [▼
              "secsdfs1" =&gt; array:2 [▼
              "name" =&gt; "Sectdfs 1"
  
              ]
          ]
          "submit" =&gt; "Submit"
          ]
      }
  </code></pre>
  
  <p>Loop to go through the request and insert:</p>
  
  <pre><code>$abc = new abc;
  $abc-&gt;create(['user_id' =&gt; 1, 'name' =&gt; $request-&gt;name, 'description' =&gt; 'test description']);
  foreach($request as $item){
      $asd = new asd;
      $asd-&gt;name = $item['name'];
      $asd-&gt;description = 'test description';
      $abc-&gt;asds()-&gt;create([$asd]);
  
  
  }
  </code></pre>
  
  <p>Im adding some data "inline" because i didnt handle them in the form yet, thats why the added duration and duration_unit for example.</p>