|
@@ -18,9 +18,9 @@ |
|
|
block discarded – undo |
|
18
|
18
|
|
|
19
|
19
|
protected function seedCategories() |
|
20
|
20
|
{ |
|
21
|
|
- $parent1 = Factory::create(new Category, ['name' => 'Parent 1', 'slug' => 'parent-1']); |
|
22
|
|
- $parent2 = Factory::create(new Category, ['name' => 'Parent 2', 'slug' => 'parent-2']); |
|
23
|
|
- $child1 = Factory::create(new Category, ['name' => 'Child 1', 'slug' => 'child-1', 'parent_id' => $parent1->id]); |
|
24
|
|
- $child2 = Factory::create(new Category, ['name' => 'Child 2', 'slug' => 'child-2', 'parent_id' => $parent2->id]); |
|
|
21
|
+ $parent1 = Factory::create(new Category, [ 'name' => 'Parent 1', 'slug' => 'parent-1' ]); |
|
|
22
|
+ $parent2 = Factory::create(new Category, [ 'name' => 'Parent 2', 'slug' => 'parent-2' ]); |
|
|
23
|
+ $child1 = Factory::create(new Category, [ 'name' => 'Child 1', 'slug' => 'child-1', 'parent_id' => $parent1->id ]); |
|
|
24
|
+ $child2 = Factory::create(new Category, [ 'name' => 'Child 2', 'slug' => 'child-2', 'parent_id' => $parent2->id ]); |
|
25
|
25
|
} |
|
26
|
26
|
} |
Please login to merge, or discard this patch.