From f11f50d1cd150c0267ae3770dccfa87545801dbc Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Wed, 28 Dec 2022 22:30:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E4=BB=85=E4=BF=9D?= =?UTF-8?q?=E7=95=99=20=E5=BF=85=E8=A6=81=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/IndexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/IndexController.php b/app/Http/Controllers/Api/IndexController.php index d34ac78..e364735 100644 --- a/app/Http/Controllers/Api/IndexController.php +++ b/app/Http/Controllers/Api/IndexController.php @@ -19,7 +19,7 @@ public function index(): JsonResponse public function birthdays(): JsonResponse { // 获取今天过生日的用户,每页显示 20 个,使用 carbon - $users = User::whereMonth('birthday_at', now()->month) + $users = User::select(['id', 'name', 'birthday_at', 'email', 'created_at'])->whereMonth('birthday_at', now()->month) ->whereDay('birthday_at', now()->day) ->simplePaginate(20);