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()
1717 Model::unguard ();
1818
1919 $ this ->seedUser ();
20- $ this ->seedDummyUsers ();
21- $ this ->seedDummyContentTypes ();
20+ $ this ->seedSampleContentTypes ();
2221
2322 Model::reguard ();
2423 }
@@ -45,32 +44,11 @@ protected function seedUser()
4544 $ user ->groups ()->attach ($ group );
4645 }
4746
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 ()
6648 {
6749 ContentType::create (array (
6850 'type ' => 'blog ' ,
6951 'enable_revisions ' => true
7052 ));
71- ContentType::create (array (
72- 'type ' => 'events ' ,
73- 'enable_revisions ' => true
74- ));
7553 }
7654}
You can’t perform that action at this time.
0 commit comments