title: Bulk Insertion in Laravel using eloquent ORM
body: <p>How can we perform bulk database insertions in Laravel using Eloquent ORM?</p>
  <p>I am working with an XML document, looping through its elements. I want to accomplish something like this in Laravel:</p>
  <pre class="lang-php prettyprint-override"><code>$sXML = download_page('http://remotepage.php&amp;function=getItems&amp;count=100&amp;page=1');
  $oXML = new SimpleXMLElement($sXML);
  $query = &quot;INSERT INTO tbl_item (first_name, last_name, date_added) VALUES&quot;;
  foreach($oXML-&gt;results-&gt;item-&gt;item as $oEntry){
      $query .=  &quot;('&quot; . $oEntry-&gt;firstname . &quot;', '&quot; . $oEntry-&gt;lastname . &quot;', '&quot; . date(&quot;Y-m-d H:i:s&quot;) . &quot;'),&quot;;
  }
  mysql_query($query);
  </code></pre>
  <p>but I am getting the following error.</p>
  <blockquote>
  <p>SQLSTATE[HY093]: Invalid parameter number: mixed named and positional parameters.</p>
  </blockquote>