*/ class ProductCategoryFactory extends Factory { protected $model = ProductCategory::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'name' => $this->faker->unique()->word() ]; } }