Skip to content

Commit d87d401

Browse files
committed
refactor install command
1 parent e6fe50b commit d87d401

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/Console/CoreModules.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff 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
*

0 commit comments

Comments
 (0)