$this->faker->numberBetween(100, 200), 'id' => $this->faker->numberBetween(100, 200), 'organizer' => $this->faker->word(), 'eventName' => $this->faker->word(), 'completedAt' => Carbon::parse($this->faker->dateTime())->startOfDay(), ]; } /** * @param array $attributes */ public function toModel(array $attributes = []): Course { return Course::from($this->create($attributes)); } public function id(int $id): self { return $this->state(['id' => $id]); } }