diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 17c9751..9c40742 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -70,6 +70,11 @@ protected function prepareWorkbenchDirectories(Filesystem $filesystem, string $w return "{$workbenchWorkingPath}/{$directory}"; }) ); + + $this->callSilently('make:seeder', [ + 'name' => 'DatabaseSeeder', + '--preset' => 'workbench', + ]); } /** diff --git a/src/Console/stubs/testbench.yaml b/src/Console/stubs/testbench.yaml index 59e7f62..97be4dd 100644 --- a/src/Console/stubs/testbench.yaml +++ b/src/Console/stubs/testbench.yaml @@ -3,12 +3,17 @@ providers: [] migrations: - workbench/database/migrations -seeders: [] +seeders: + - Workbench\Database\Seeders\DatabaseSeeder workbench: start: '/' install: true welcome: true + discovers: + web: false + api: false + commands: false build: [] assets: [] sync: [] diff --git a/workbench/database/seeders/.gitkeep b/workbench/database/seeders/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/workbench/database/seeders/DatabaseSeeder.php b/workbench/database/seeders/DatabaseSeeder.php new file mode 100644 index 0000000..d2afce7 --- /dev/null +++ b/workbench/database/seeders/DatabaseSeeder.php @@ -0,0 +1,17 @@ +