$this->faker->firstName(), 'lastname' => $this->faker->lastName(), 'groupId' => $this->faker->numberBetween(100, 200), 'id' => $this->faker->numberBetween(100, 200), 'agegroup' => $this->faker->randomElement(['Wölfling', 'Juffi', 'Pfadi', 'Rover']), ]; } public function noFirstname(): self { return $this->state([ 'firstname' => null, ]); } /** * @param array $attributes */ public function toMember(array $attributes = []): MemberEntry { return MemberEntry::from($this->create($attributes)); } }