$this->faker->word(), 'is_blocked' => $this->faker->boolean(30), // 30% chance of being blocked 'created_at' => $this->faker->dateTimeBetween('-1 year', 'now'), 'updated_at' => now(), ]; } public function blocked(): static { return $this->state(fn (array $attributes) => [ 'is_blocked' => true, ]); } public function allowed(): static { return $this->state(fn (array $attributes) => [ 'is_blocked' => false, ]); } }