1// first day of month (2021-01-01 00:00:00)
2Carbon::now()->firstOfMonth()->startOfDay()
3
4// first day of month in timestamp (1609459200)
5Carbon::now()->firstOfMonth()->startOfDay()->timestamp
6
7// last day of month (2021-01-31 23:59:59)
8Carbon::now()->lastOfMonth()->endOfDay()
9
10// last day of month in timestamp (1640995199)
11Carbon::now()->lastOfMonth()->endOfDay()->timestamp