title: How to save multiple form at single submit in PHP laravel?
body: <p>I've a form which can be saved to database multiple times depending upon number of entries in to it. To be precise, I have 4 input fields and after filling all the fields I click on <strong>Add</strong> button. Upon clicking on Add button, I'm creating an entry in a table row inside <code>&lt;form&gt;</code> tag like,</p>
  
  <pre><code>&lt;form&gt;
   &lt;table&gt;
    &lt;tr&gt;
     &lt;td&gt; &lt;input type="hidden" name="a[]" value="xyz" /&gt; xyz&lt;/td&gt;
     &lt;td&gt; &lt;input type="hidden" name="b[]" value="123" /&gt; 123&lt;/td&gt;
     &lt;td&gt; &lt;input type="hidden" name="c[]" value="456" /&gt; 456&lt;/td&gt;
     &lt;td&gt; &lt;input type="hidden" name="d[]" value="abc" /&gt; abc&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
     &lt;td&gt; &lt;input type="hidden" name="a[]" value="xyz" /&gt; xyz&lt;/td&gt;
     &lt;td&gt; &lt;input type="hidden" name="b[]" value="123" /&gt; 123&lt;/td&gt;
     &lt;td&gt; &lt;input type="hidden" name="c[]" value="456" /&gt; 456&lt;/td&gt;
     &lt;td&gt; &lt;input type="hidden" name="d[]" value="abc" /&gt; abc&lt;/td&gt;
    &lt;/tr&gt;
   &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Now I want to save each row of the table into database as a row. I'm unable to understand how to do that. I'm getting the data in controller using <code>dd($a = $request-&gt;input('a'));</code> for a single field as,</p>
  
  <pre><code>array:2 [▼
    0 =&gt; "xyz"
    1 =&gt; "xyz"
  ]
  </code></pre>
  
  <p>I'm using this to save it into DB using Laravel,</p>
  
  <pre><code>$save=Model::Create(array(
          'a'=&gt;$request-&gt;input('a'),
          'b'=&gt;$request-&gt;input('b'),
          'c'=&gt;$request-&gt;input('c'),
          'd'=&gt;$request-&gt;input('d')
  ));
  </code></pre>
  
  <p>I'm getting error,</p>
  
  <blockquote>
    <p>Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, string given, called in /var/www/html/quoting/vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php on line 681 and defined</p>
  </blockquote>
  
  <p>How can I save it into the database using the Laravel command.?</p>