diff --git a/routes/web.php b/routes/web.php index 0cc4fce5..f9184d71 100644 --- a/routes/web.php +++ b/routes/web.php @@ -29,7 +29,7 @@ Route::group(['middleware' => ['role:admin']], function() { }); foreach($months as $month => $bookings){ - $newCustomers = \App\User::whereYear('created_at', '=', Carbon::parse($month)->format('Y')) ->whereMonth('created_at', '=', Carbon::parse($month)->format('Y'))->get(); + $newCustomers = \App\User::whereYear('created_at', '=', Carbon::parse($month)->format('Y')) ->whereMonth('created_at', '=', Carbon::parse($month)->format('m'))->get(); echo "