Laravel - update multiple records with different values
<p>I have a table , similar to this:</p>

<pre><code>|   key    | value |
|----------|-------|
| limit    |    15 |
| viplimit |    25 |
| ..       |       |
</code></pre>

<p>And i have an array :</p>

<pre><code>Array
(
[0] =&gt; Array
    (
        [key] =&gt; limit
        [value] =&gt; 10
    )

[1] =&gt; Array
    (
        [key] =&gt; viplimit
        [value] =&gt; 99
    )

...
</code></pre>

<p>Now , saying we have 100 rows. What would be the best way to update the table corresponding to the array ? </p>

<p>There would be the option of a query for each 100 row, but that is just bad performance. </p>