title: Laravel Bulk Update for multiple record ids
body: <p>I want to mass update my records in Laravel but the records not getting updated. I have a different record for each Id. Below is what I am trying.</p>
  
  <pre><code>$ids = [5,6,8,9],
  $updated_array = [
    ['name' =&gt; 'tarun'],
    ['name' =&gt; 'Akash'],
    ['name' =&gt; 'Soniya'],
    ['name' =&gt; 'Shalu'],
  ];
  
  Model::whereIn('id', $ids)-&gt;update($updated_array);
  </code></pre>