Commit 0594d1b5 authored by Michael Ngei's avatar Michael Ngei

Added birth endpoint

parent 83b27d91
...@@ -21,7 +21,7 @@ class BirthRecord extends Controller ...@@ -21,7 +21,7 @@ class BirthRecord extends Controller
$rid = Docum::where('ser_num', '=', $validatedData['entry_num'])->value('rid_h'); $rid = Docum::where('ser_num', '=', $validatedData['entry_num'])->value('rid_h');
if($rid){ if($rid){
$human = Human::where('rid','=', $rid)->whereColumn('rid', 'pid') $human = Human::where('rid','=', $rid)->whereColumn('rid', 'pid')
->get(['name', 'surn', 'last_name', 'sex', 'date_birth', 'date_death', 'maisha_num']); ->get(['name', 'surn', 'last_name', 'sex', 'date_birth', 'date_death', 'o_pid']);
if($human->isEmpty()){ if($human->isEmpty()){
return response()->json([ return response()->json([
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment