$this->faker->words(3, true), 'description' => $this->faker->paragraph(), 'price' => $this->faker->randomFloat(2, 10, 1000), 'category_id' => function () { return Category::inRandomOrder()->first()->id ?? null; }, 'featured_image' => 'products/product-' . $this->faker->numberBetween(1, 10) . '.jpg', 'featured_image_original_name' => 'product-image.jpg', 'created_at' => $this->faker->dateTimeBetween('-6 months', 'now'), 'updated_at' => function (array $attributes) { return $this->faker->dateTimeBetween($attributes['created_at'], 'now'); }, ]; } }