feat: adds today() method

This commit is contained in:
hackerESQ
2025-07-21 20:28:57 -05:00
parent 8e0d792d26
commit 653f54add6
@@ -59,6 +59,13 @@ class TransactionFactory extends Factory
]);
}
public function today(): static
{
return $this->state(fn (array $attributes) => [
'date' => now()->toDateString(),
]);
}
public function recent(): static
{
return $this->state(fn (array $attributes) => [