faker->numberBetween(10, 500); $isAddition = $this->faker->boolean(); return [ 'user_id' => User::factory(), 'change' => $change, 'type' => PointRecordType::REWARD, 'description' => $this->faker->sentence(4), 'is_addition' => true, ]; } public function reward(): Factory { return $this->state(fn () => ['type' => PointRecordType::REWARD]); } public function tier(): Factory { return $this->state(fn () => ['type' => PointRecordType::TIER]); } }