Random:
return [
'id' => rand(1111111, 9999999),
'user_id' => rand(1, 10),
'size' => ['Small', 'Medium', 'Large', 'Extra-Large'][rand(0, 3)],
'crust' => ['Regular', 'Thin', 'Garlic'][rand(0, 2)],
'status' => ['Ordered', 'Prepping', 'Baking', 'Checking', 'Ready'][rand(0, 4)],
'toppings' => $toppings,
];
Source:
https://github.com/aschmelyun/dices-pizza/blob/main/database/factories/PizzaFactory.php
https://youtu.be/hWFP9DeB7KA?si=bGjvYP-VFDY-aaH5&t=679