File tree Expand file tree Collapse file tree 1 file changed +2
-24
lines changed
src/Darryldecode/Backend/Database/Seeders Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ public function run()
17
17
Model::unguard ();
18
18
19
19
$ this ->seedUser ();
20
- $ this ->seedDummyUsers ();
21
- $ this ->seedDummyContentTypes ();
20
+ $ this ->seedSampleContentTypes ();
22
21
23
22
Model::reguard ();
24
23
}
@@ -45,32 +44,11 @@ protected function seedUser()
45
44
$ user ->groups ()->attach ($ group );
46
45
}
47
46
48
- protected function seedDummyUsers ()
49
- {
50
- $ faker = Faker::create ();
51
-
52
- foreach (range (0 ,30 ) as $ i )
53
- {
54
- $ user = \Darryldecode \Backend \Components \User \Models \User::create (array (
55
- 'first_name ' => $ faker ->firstName ,
56
- 'last_name ' => $ faker ->lastName ,
57
- 'email ' => $ faker ->email ,
58
- 'password ' => $ faker ->word ,
59
- 'permissions ' => array (
60
- ),
61
- ));
62
- }
63
- }
64
-
65
- protected function seedDummyContentTypes ()
47
+ protected function seedSampleContentTypes ()
66
48
{
67
49
ContentType::create (array (
68
50
'type ' => 'blog ' ,
69
51
'enable_revisions ' => true
70
52
));
71
- ContentType::create (array (
72
- 'type ' => 'events ' ,
73
- 'enable_revisions ' => true
74
- ));
75
53
}
76
54
}
You can’t perform that action at this time.
0 commit comments