$period = CarbonPeriod::create($startDate, $endDate); foreach($period as $date) { $dates[] = $date->format('d-m-Y'); }