db:seed cleanup

This commit is contained in:
StudioTem committed 2023-01-24 21:54:03 +01:00
1 parent 33499107b7
commit dfac41f30a
9 files changed
+75 -18

No files matched your search

@@ -20,7 +20,11 @@ class TimeblockFactory extends Factory
$start = fake()->dateTimeBetween('now', '+3 weeks');
$end = Carbon::instance($start)->addHours(fake()->numberBetween(3, 5));
// get random subtask
$subtask = \App\Models\SubTask::all()->random();
return [
'sub_task_id' => $subtask->id,
'start' => $start,
'end' => fake()->dateTimeBetween($start, $end),
];