error handling update pembayaran

parent 3e0d0d9d
......@@ -342,6 +342,7 @@ public function updatePembayaran(Request $request, $va)
], 200);
}
try{
$registrasi = Registrasi::query()
->with('pkKegiatan', 'pkRegistrasiPeserta.rKegiatanPeserta', 'pkRegistrasiPeserta.rKonferensiPeserta')
->where('nomor_va', $va)
......@@ -358,6 +359,13 @@ public function updatePembayaran(Request $request, $va)
'message' => 'success'
], 200);
}
catch(Exception $ex){
return response([
'status' => 404,
'message' => 'gagal mengupdate data'
], 200);
}
}
public function testEmail(Request $request)
{
......
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