Answer
When you do:
$startingAt = Carbon::today()->copy()->addHours($this->faker->randomNumber());
Faker may return anything up to PHP's mt_getrandmax
as the randomNumber()
. On my system, that's 2147483647.
2147483647 hours is nearly 250,000 years.
If you want realistic dates, consider using one of Faker's date and time functions instead.
0 comments:
Post a Comment
Thanks