php - How can you run into DEADLOCKS without LOCKS?
one text
Solution:
without foreach just
DB::transaction(function () {
// ...
Car::where('user_id','=', $user->id)->update(['color' => 'red');
})
Sourceone text
without foreach just
DB::transaction(function () {
// ...
Car::where('user_id','=', $user->id)->update(['color' => 'red');
})
Source