From e90eabc542eb0a892a2ae8c74c66a01988542c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Tue, 16 Nov 2021 18:57:48 +0900 Subject: [PATCH] =?UTF-8?q?=E8=AA=AC=E6=98=8E=E6=9B=B8=E3=81=AB=E3=82=88?= =?UTF-8?q?=E3=81=A3=E3=81=A6=E4=BF=AE=E6=AD=A3=E3=81=97=E3=81=BE=E3=81=97?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/Http/Controllers/Api/ChildrenController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/app/Http/Controllers/Api/ChildrenController.php b/backend/app/Http/Controllers/Api/ChildrenController.php index b7dedb83..408b01c6 100644 --- a/backend/app/Http/Controllers/Api/ChildrenController.php +++ b/backend/app/Http/Controllers/Api/ChildrenController.php @@ -240,7 +240,9 @@ KIKI承知システムを使って「聞いてない!」「言ってない! } public function list () { - if (null === ($result = Child::orderBy('created_at', 'desc')->get())) { + $child_select = ['first_name', 'last_name', 'tel']; + + if (null === ($result = Child::select($child_select)->orderBy('created_at', 'desc')->get())) { // 親一覧の取得に失敗 return ['status_code' => 400]; }