fix serahan

This commit is contained in:
hafifierahman
2021-02-17 09:16:16 +08:00
parent 957f6830d7
commit 4a74f053b5
3 changed files with 19 additions and 3 deletions
+17 -2
View File
@@ -41,9 +41,24 @@ class KelulusanController extends Controller
->where('masalulus','<>','')
->get();
return response()->json($kelulusan);
}
public function listlatestlulus($kodcaw,$norujukan)
{
$harini = Carbon::now();
$harini = new Carbon;
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$kelulusan=Mohon::on($cawangan['mysql'])
->where('tarikh','=',$harini->toDateString())
->where('norujukan','=',$norujukan)
->orderBy('siri','desc')
->first();
return response()->json($kelulusan);
}