$this->faker->randomNumber(), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), 'entry_id' => Entry::factory(), 'user_id' => User::factory(), 'originally_scored_entry' => Entry::factory(), ]; } public function forEntry(Entry $entry): self { return $this->state(function (array $attributes) use ($entry) { return [ 'entry_id' => $entry->id, ]; }); } }