feat(seeder): conditionally seed UserSeeder for self-hosted setups

Added logic to the DatabaseSeeder to call UserSeeder only if the application is configured for self-hosting. This ensures that user data is seeded appropriately based on the deployment environment.
This commit is contained in:
Paulo Castellano 2026-06-10 13:01:32 -03:00
parent 65afd86824
commit bc44388570

View file

@ -15,7 +15,12 @@ public function run(): void
{
$this->call([
PlanSeeder::class,
PassportSeeder::class,
PassportSeeder::class
]);
// If self-hosted, seed the user seeder
if(config('trypost.self_hosted')) {
$this->call(UserSeeder::class);
}
}
}