File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -35,37 +35,26 @@ public function run()
35
35
]);
36
36
37
37
// Faker factories
38
- Recommend::truncate ();
39
38
Recommend::factory ()->count (30 )->create ();
40
39
41
- PostalBoxer::truncate ();
42
40
PostalBoxer::factory ()->count (30 )->create ();
43
41
44
- Bill::truncate ();
45
42
Bill::factory ()->count (30 )->create ();
46
43
47
- Tag::truncate ();
48
44
Tag::factory ()->count (21 )->create ();
49
45
50
- Category::truncate ();
51
46
Category::factory ()->count (40 )->create ();
52
47
53
- Article::truncate ();
54
48
Article::factory ()->count (1031 )->create ();
55
49
56
- Product::truncate ();
57
50
Product::factory ()->count (210 )->create ();
58
51
59
- Monster::truncate ();
60
52
Monster::factory ()->count (140 )->create ();
61
53
62
- Page::truncate ();
63
54
Page::factory ()->count (16 )->create ();
64
55
65
- MenuItem::truncate ();
66
56
MenuItem::factory ()->count (7 )->create ();
67
57
68
- Meeting::truncate ();
69
58
Meeting::factory ()->count (50 )->create ();
70
59
}
71
60
}
Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ public function run()
32
32
DB ::disableQueryLog ();
33
33
DB ::beginTransaction ();
34
34
35
- for ($ i = 1 ; $ i <= 1000 ; $ i ++) {
35
+ for ($ i = 1 ; $ i <= 100 ; $ i ++) {
36
36
$ body = $ this ->faker ->text ;
37
37
$ commentable = $ i % 2 == 0 ? $ this ->owners ->random () : $ this ->pets ->random ();
38
38
$ commentable_type = get_class ($ commentable );
39
39
$ commentable_id = $ commentable ->getKey ();
40
40
41
- $ comments = array_fill (0 , 1000 , [
41
+ $ comments = array_fill (0 , 100 , [
42
42
'body ' => $ body ,
43
43
'commentable_type ' => $ commentable_type ,
44
44
'commentable_id ' => $ commentable_id ,
You can’t perform that action at this time.
0 commit comments