title: Multiple DB update query using Laravel 5
body: <p>I'm new in Laravel and I'm trying to update mysql table's multiple rows using one query. I need to update for example 100 rows like this:</p>
  
  <pre><code> $q = \DB::table('exmaple')
                       -&gt;where('exampleID', $array)
                       -&gt;update(array('Viewed' =&gt; 1));
  </code></pre>
  
  <p>$array is array with ID-s.
  I have try also to implode array to string, then execute query, but with no result. Can anyone help?</p>