firstOfMonth()->format('Y-m-d'), $carbon->lastOfMonth()->format('Y-m-d') ]; } public static function getLastMonth() { return Carbon::now()->subMonth()->format('Y-m'); } public static function getNextMonth() { return Carbon::now()->addMonth()->format('Y-m'); } }