File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,12 @@ protected function configureCoreModules()
3535 copy (__DIR__ .'/../../stubs/public/favicon.svg ' , public_path ('favicon.svg ' ));
3636
3737 $ this ->setupDatabase ();
38- $ this ->setupFactory ();
38+ $ this ->seedDatabase ();
3939
4040 $ this ->runCommands (['npm run build ' ]);
4141
42- $ this ->seedDatabase ();
43-
4442 $ this ->line ('' );
43+
4544 $ this ->components ->info ('Core Modules configured! ' );
4645 }
4746
@@ -87,6 +86,7 @@ private function copyModules(): void
8786 protected function setupDatabase ()
8887 {
8988 (new Filesystem )->copyDirectory (__DIR__ .'/../../stubs/database/seeders ' , base_path ('database/seeders ' ));
89+ (new Filesystem )->copyDirectory (__DIR__ .'/../../stubs/database/factories ' , base_path ('database/factories ' ));
9090
9191 $ this ->call ('vendor:publish ' , [
9292 '--tag ' => 'modular-migrations ' ,
@@ -99,11 +99,6 @@ protected function setupDatabase()
9999 });
100100 }
101101
102- protected function setupFactory ()
103- {
104- (new Filesystem )->copyDirectory (__DIR__ .'/../../stubs/database/factories ' , base_path ('database/factories ' ));
105- }
106-
107102 /**
108103 * Run the php artisan db:seed command.
109104 *
You can’t perform that action at this time.
0 commit comments