User::factory(), 'type' => $this->faker->word(), 'message' => $this->faker->sentence(), 'read' => false, ]; } public function read(): static { return $this->state(fn (array $attributes) => [ 'read' => true, ]); } }