laravel repository update multiple row 1

laravel repository update multiple row

ItemTable::where('item_type_id', '=', 1)->update(['color' => 'black']);

Here is what the above code is Doing:
1. We’re selecting all the rows from the ItemTable table where the item_type_id is equal to 1.
2. We’re updating the color column to be black.

Similar Posts