use CarbonCarbon;
// Date = 7th of July 2021
$month = Carbon::now()->format('M'); // July
$month = Carbon::now()->format('m'); // 07
$month = Carbon::now()->month; // 7
Carbon::tomorrow()->format('l');
use CarbonCarbon;
Carbon::now()->format("l") // today's day name. example: Sunday
$period = CarbonPeriod::create($startDate, $endDate);
foreach($period as $date)
{
$dates[] = $date->format('d-m-Y');
}
$now = Carbon::now();
echo $now->year;
echo $now->month;
echo $now->weekOfYear;