How can I update a database record using migration in Laravel?


I have 100 records in the database, each record has a value field that is equal to 0

How can I use migration to change the value of the value field so that this value is in the reverse order? For example, like this: -1, -2, -3, -4 ...

Source: Laravel

Leave a Reply