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:
parent
65afd86824
commit
bc44388570
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue