User::factory(), 'content' => $this->faker->paragraph(), 'rating' => $this->faker->numberBetween(1, 5), 'is_show' => IsShow::SHOW, ]; } public function hidden(): static { return $this->state(fn (array $attributes) => [ 'is_show' => IsShow::HIDDEN, ]); } public function show(): static { return $this->state(fn (array $attributes) => [ 'is_show' => IsShow::SHOW, ]); } }