title: Update Query in laravel 5.4
body: <p>How can I update multiple rows</p>
  
  <p>I'm getting below array</p>
  
  <pre><code>  [
       "3",
       "4",
       "5"
    ]
  </code></pre>
  
  <p>My Controller</p>
  
  <pre><code>$answers= $request-&gt;get('option'); //answers array
  foreach ($answers as  $answer)
  {
     Answer::where('question_id', 1)-&gt;update(
            ['customer_id' =&gt; 1,
            'answer' =&gt; $answer]);
  }
  </code></pre>