Skip to content

Commit

Permalink
Make sure, that dummy data is only seeded when APP_ENV is not production
Browse files Browse the repository at this point in the history
  • Loading branch information
xam-ps committed Dec 23, 2023
1 parent ac284a1 commit ab64f68
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ public function run(): void
// 'email' => '[email protected]',
// ]);
$this->call([UserSeeder::class]);
$this->call([RevenueSeeder::class]);
$this->call([CostTypeSeeder::class]);
$this->call([ExpenseSeeder::class]);
$this->call([TravelAllowanceSeeder::class]);
if (! app()->environment('production')) {
$this->call([
RevenueSeeder::class,
ExpenseSeeder::class,
TravelAllowanceSeeder::class,
]);
}
}
}

0 comments on commit ab64f68

Please sign in to comment.