diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php new file mode 100644 index 000000000..ae436a071 --- /dev/null +++ b/database/seeders/DatabaseSeeder.php @@ -0,0 +1,23 @@ +withPersonalTeam()->create(); + + User::factory()->withPersonalTeam()->create([ + 'name' => 'Test User', + 'email' => 'test@example.com', + ]); + } +} diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 23f33375d..d1db88a90 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -554,6 +554,9 @@ protected function ensureApplicationIsTeamCompatible() // Factories... copy(__DIR__.'/../../database/factories/UserFactory.php', base_path('database/factories/UserFactory.php')); copy(__DIR__.'/../../database/factories/TeamFactory.php', base_path('database/factories/TeamFactory.php')); + + // Seeders... + copy(__DIR__.'/../../database/seeders/DatabaseSeeder.php', base_path('database/seeders/DatabaseSeeder.php')); } /**