subDays(rand(0, 30)); $due_date = $order_date->copy()->addDays(rand(9, 15)); return [ 'created_at' => $order_date, 'updated_at' => Carbon::now(), 'customer_po' => $this->faker->randomNumber(6, true), 'order_type' => $this->faker->randomElement(OrderType::cases())->value, 'order_date' => $order_date, 'due_date' => $due_date, 'status' => $this->faker->randomElement(OrderStatus::cases())->value, 'notes' => $this->faker->words(10, true), 'order_attributes' => ['New Art', 'Garments', 'Rush'], ]; } }