This commit is contained in:
afiq
2021-02-13 15:21:10 +08:00
parent e7538a8669
commit 2545b36668
+5 -2
View File
@@ -60,8 +60,11 @@ class HargaEmasController extends Controller
'harga2' => $request->harga2,
'tarikhupdate' => $harini->toDateString()
]);
return response()->json($hargaemas, 201);
if($hargaemas){
return response()->json(1, 201);
}else{
return response()->json("unsuccess", 201);
}
}
public function deletehargaemas($id)