think my table is like this
+--------+-------------------+-----------+
| ID | Type | nOrder |
+--------+-------------------+-----------+
| 1 | A | 0 |
| 2 | A | 1 |
| 3 | A | 2 |
| 4 | B | 0 |
| 5 | B | 1 |
| 6 | B | 2 |
| 7 | B | 3 |
| 8 | B | 4 |
| 9 | C | 0 |
| 10 | C | 1 |
+--------+-------------------+-----------+
and i have an array like this
+--------+-------------------+-----------+
| ID | Type | nOrder |
+--------+-------------------+-----------+
| 5 | A | 0 |
| 4 | A | 1 |
+--------+-------------------+-----------+
i want to update my table with these new rows in laravel is there any way to this in laravel without a loop? if not how can i do it with sql statment
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kGyUQz
via IFTTT
Aucun commentaire:
Enregistrer un commentaire