public function run() { Timer::truncate(); $this->faker = Faker::create(); $users = User::all(); foreach ($users as $user) { $this->user = $user; /** * Create entries for the last 5 days. */ foreach (range(0, 4) as $index) { $this->createDaySleep($index, $index * 15); $this->createNightSleep($index, $index * 15); $this->createWorkEntry($index); } } }