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());