Feed::factory(), 'platform_channel_id' => PlatformChannel::factory(), 'is_active' => $this->faker->boolean(80), // 80% chance of being active 'created_at' => $this->faker->dateTimeBetween('-1 year', 'now'), 'updated_at' => now(), ]; } public function active(): static { return $this->state(fn (array $attributes) => [ 'is_active' => true, ]); } public function inactive(): static { return $this->state(fn (array $attributes) => [ 'is_active' => false, ]); } }