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 a40500b commit 318319dCopy full SHA for 318319d
frameworks/PHP/laravel/app/Http/Controllers/Controller.php
@@ -52,7 +52,7 @@ public function updates($queries = 1)
52
53
while ($queries--) {
54
$row = World::query()->find(self::randomInt());
55
- $row->randomNumber = self::randomInt();
+ $row->randomNumber = ($randomInt = self::randomInt()) !== $row->randomNumber ? $randomInt : $randomInt + 1;
56
$row->save();
57
58
$rows[] = $row;
0 commit comments