📅  最后修改于: 2022-03-11 14:53:37.700000             🧑  作者: Mango
get all of dates ( day ) from a month...
$month = '2015-01';
$start = Carbon::parse($month)->startOfMonth();
$end = Carbon::parse($month)->endOfMonth();
$dates = [];
while ($start->lte($end)) {
$dates[] = $start->copy();
$start->addDay();
}
echo "", print_r($dates), "
";