Фрагмент кода: < /p>
Код: Выделить всё
$period = CarbonPeriod::create('2024-01-01', '1 week', '2025-01-31');
foreach ($period as $date) {
echo $date->format('W Y') ."\r\n";
}
dd();
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/794 ... week-month