$this->faker->numberBetween(100, 200), 'group' => $this->faker->word(), 'startsAt' => $this->faker->dateTime()->format('Y-m-d').' 00:00:00', 'endsAt' => $this->faker->dateTime()->format('Y-m-d').' 00:00:00', 'activity' => $this->faker->word(), 'subactivity' => $this->faker->word(), ]; } /** * @param array $attributes */ public function toMembership(array $attributes = []): MembershipEntry { return MembershipEntry::from($this->create($attributes)); } public function id(int $id): self { return $this->state(['id' => $id]); } }