Commit f8b8790f authored by Michael Ngei's avatar Michael Ngei

Merge branch 'iprsv2_mike' into 'master'

Added birth endpoint

See merge request !16
parents 297e3303 0594d1b5
......@@ -21,7 +21,7 @@ class BirthRecord extends Controller
$rid = Docum::where('ser_num', '=', $validatedData['entry_num'])->value('rid_h');
if($rid){
$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()){
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