Warehouse::factory(), 'invoice_number' => Str::upper($this->faker->bothify('PO-########')), 'purchase_date' => $this->faker->date(), 'total' => $this->faker->numberBetween(50000, 500000), 'note' => $this->faker->optional()->sentence(6), ]; } public function today(): Factory { return $this->state(fn () => ['created_at' => now()]); } public function yesterday(): Factory { return $this->state(fn () => ['created_at' => now()->subDay()]); } }