Create and array of all the dates between a start and end date with CarbonPeriod
...
$period = CarbonPeriod::create($startDate, $endDate);
foreach ($period as $date) {
$date->format('Y-m-d');
}
$dates = $period->toArray();
...
$period = CarbonPeriod::create($startDate, $endDate);
foreach ($period as $date) {
$date->format('Y-m-d');
}
$dates = $period->toArray();