*/ public function definition(): array { return [ 'body' => '
'.fake()->paragraph().'
', 'edited_at' => null, ]; } public function withParent(?Comment $parent = null): static { return $this->state(fn (array $attributes) => [ 'parent_id' => $parent?->id, ]); } public function edited(): static { return $this->state(fn (array $attributes) => [ 'edited_at' => now(), ]); } }