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 6866644 commit b580586Copy full SHA for b580586
database/seeders/MillionCommentsSeeder.php
@@ -32,13 +32,13 @@ public function run()
32
DB::disableQueryLog();
33
DB::beginTransaction();
34
35
- for ($i = 1; $i <= 1000; $i++) {
+ for ($i = 1; $i <= 100; $i++) {
36
$body = $this->faker->text;
37
$commentable = $i % 2 == 0 ? $this->owners->random() : $this->pets->random();
38
$commentable_type = get_class($commentable);
39
$commentable_id = $commentable->getKey();
40
41
- $comments = array_fill(0, 1000, [
+ $comments = array_fill(0, 100, [
42
'body' => $body,
43
'commentable_type' => $commentable_type,
44
'commentable_id' => $commentable_id,
0 commit comments