delete()) { return ['status_code' => 200]; } // 削除失敗 return ['status_code' => 400]; } public function deleteRelationChild ($child_id) { // 削除成功 if (FatherRelation::where('child_id', $child_id)->delete()) { return ['status_code' => 200]; } // 削除失敗 return ['status_code' => 400]; } }