diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index beb463c..8f6f909 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -102,7 +102,7 @@ SQL } // 月間グラフ用の配列初期化 - $month = Carbon::now()->subMonth(11)->firstOfMonth(); // 直近12ヶ月 + $month = Carbon::now()->firstOfMonth()->subMonth(11); // 直近12ヶ月 for ($i = 0; $i < 12; $i++) { $monthlySum[$month->format('Y/m')] = 0; $month->addMonth();