From 5ee90e897d229f177b2f0ecf41ecd576df3a967a 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: Fri, 29 Oct 2021 17:58:06 +0900 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E3=81=AEAPI=E3=81=AE=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= 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 290df9ad..6680520e 100644 --- a/backend/app/Http/Controllers/Api/ChildrenController.php +++ b/backend/app/Http/Controllers/Api/ChildrenController.php @@ -271,7 +271,7 @@ class ChildrenController extends Controller { } public function detail (Request $r, $child_id) { - $child_select = ['email', 'tel', 'last_name', 'first_name', 'image', 'company']; + $child_select = ['email', 'tel', 'last_name', 'first_name', 'identity', 'image', 'company']; $father_relation_select = ['hire_at']; // 親詳細の取得に成功 @@ -350,6 +350,7 @@ class ChildrenController extends Controller { 'tel' => 'required|numeric|digits_between:0,99999999999|starts_with:0', 'last_name' => 'required|max:100', 'first_name' => 'required|max:100', + 'identity' => 'required|max:20|alpha_num', 'company' => 'max:100', ]); @@ -362,6 +363,7 @@ class ChildrenController extends Controller { 'tel' => $r->tel, 'last_name' => $r->last_name, 'first_name' => $r->first_name, + 'identity' => $r->identity, 'company' => $r->company, ];