We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 735cd65 commit 08e68e4Copy full SHA for 08e68e4
frameworks/PHP/laravel/app/Http/Controllers/Controller.php
@@ -52,7 +52,8 @@ public function updates($queries = 1)
52
53
while ($queries--) {
54
$row = World::query()->find(self::randomInt());
55
- $row->randomNumber = self::randomInt();
+ while (($randomInt = self::randomInt()) === $row->randomNumber) {}
56
+ $row->randomNumber = $randomInt;
57
$row->save();
58
59
$rows[] = $row;
0 commit comments