diff --git a/database/Factories/JournalEntryFactory.php b/database/Factories/JournalEntryFactory.php index 178bc08..f2a34b9 100644 --- a/database/Factories/JournalEntryFactory.php +++ b/database/Factories/JournalEntryFactory.php @@ -29,7 +29,7 @@ class JournalEntryFactory extends Factory 'sodium' => $this->faker->randomFloat(1, 0, 500), 'carbohydrates' => $this->faker->randomFloat(1, 0, 40), 'protein' => $this->faker->randomFloat(1, 0, 20), - 'meal' => User::getDefaultMeals()->pluck('value')->random(), + 'meal' => User::getDefaultMeals()->where('enabled', true)->pluck('value')->random(), ]; }