mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
db:seed cleanup
This commit is contained in:
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),
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user