public function definition() {
return [
'name' => $this->faker->randomElement([
'Product #' . $this->faker->numberBetween(10, 100),
]),
'price' => $this->faker->randomFloat(2, 0, 100),
'old_price' => $this->faker->randomFloat(2, 0, 100),
'promo_categories' => $this->faker->randomElement(['sale', 'best_seller', 'featured']),
'description' => $this->faker->text,
'sizes' => $this->faker->randomElements(['s', 'm', 'l', 'xl', 'xxl'], $this->faker->numberBetween(1, 5)),
'colors' => $this->faker->randomElements(['red', 'blue', 'green', 'yellow', 'black'], $this->faker->numberBetween(1, 5)),
'image' => $this->faker->randomElement([
'https://dl.dropbox.com/s/mp09o5lh5qi4ilb/warm-hat.png?dl=0',
'https://dl.dropbox.com/s/19wbfj6xlbrybda/purple-sneakers.png?dl=0',
'https://dl.dropbox.com/s/kmtfg9svmcelk8m/summer-dress.png?dl=0',
'https://dl.dropbox.com/s/0n6asaq4ujalu39/denim-shorts.png?dl=0',
'https://dl.dropbox.com/s/9p1rsvfn8ok83at/summer-dress-2.png?dl=0',
'https://dl.dropbox.com/s/bpnpef7vpcn09hr/summer-pants.png?dl=0',
]),
'categories' => $this->faker->randomElements(['men', 'women', 'kids', 'sport'])
];
}