From 548f94ad5bc4cef9290931987b26b41ad1abe7e1 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 22:34:46 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A4=B1=E7=A4=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/Http/Controllers/Api/FatherRelationsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/Http/Controllers/Api/FatherRelationsController.php b/backend/app/Http/Controllers/Api/FatherRelationsController.php index 4a8629cc..c40bd98c 100644 --- a/backend/app/Http/Controllers/Api/FatherRelationsController.php +++ b/backend/app/Http/Controllers/Api/FatherRelationsController.php @@ -64,7 +64,7 @@ class FatherRelationsController extends Controller { } try { - FatherRelation::where('father_id', session()->get('fathers')->id)->where('child_id', $child_id)->delete(); + FatherRelation::where('father_id', session()->get('fathers')['id'])->where('child_id', $child_id)->delete(); } catch (\Throwable $e) { // 失敗 Log::critical($e->getMessage());