null, 'platform_channel_id' => null, 'keyword' => 'test keyword', 'is_active' => $this->faker->boolean(70), // 70% chance of being active 'created_at' => $this->faker->dateTimeBetween('-1 year', 'now'), 'updated_at' => now(), ]; } public function forFeed(\App\Models\Feed $feed): static { return $this->state(fn (array $attributes) => [ 'feed_id' => $feed->id, ]); } public function forChannel(\App\Models\PlatformChannel $channel): static { return $this->state(fn (array $attributes) => [ 'platform_channel_id' => $channel->id, ]); } 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, ]); } }