update all relation laravel by wiht code example Example: laravel update all relations $position->users()->update(['position_id' => 4]);