*/ #[UseModel(Page::class)] class PageFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ Page::ATTRIBUTE_BODY => fake()->sentences(3, true), Page::ATTRIBUTE_NAME => fake()->words(3, true), Page::ATTRIBUTE_SLUG => Str::slug(fake()->text(191), '_'), ]; } }