I'm doing a migration. This way php artisan migrate: fresh --seed
Could you help me, please?
I get the following error:
InvalidArgumentException : Start date must be anterior to end date.
at C:\miapp\vendor\fzaninotto\faker\src\Faker\Provider\DateTime.php:128
124| $startTimestamp = $startDate instanceof \DateTime ? $startDate->getTimestamp() : strtotime($startDate);
125| $endTimestamp = static::getMaxTimestamp($endDate);
126|
127| if ($startTimestamp > $endTimestamp) {
> 128| throw new \InvalidArgumentException('Start date must be anterior to end date.');
129| }
130|
131| $timestamp = mt_rand($startTimestamp, $endTimestamp);
132|
Exception trace:
1 Faker\Provider\DateTime::dateTimeBetween("now", "2018-11-29")
C:\miapp\vendor\fzaninotto\faker\src\Faker\Generator.php:222
2 call_user_func_array()
C:\miapp\vendor\fzaninotto\faker\src\Faker\Generator.php:222