That seems to be the easiest way to do it TBH. If it were the same value for all rows, you could've done it using a simple update()
, but since the values are dynamic, your way is the easiest.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community