add listcawangan

This commit is contained in:
Hafifie PKB
2023-12-12 12:39:30 +08:00
parent 60d04ef889
commit 3f8149c576
2 changed files with 16 additions and 0 deletions
@@ -3754,4 +3754,18 @@ class AdminPageController extends Controller
return response()->json($bayaran);
}
}
public function ListCawangan(Request $request){
$cawangan = Cawangan::on('mysql7')->get();
return response()->json($cawangan);
}
public function ListCawangan_Update(Request $request){
$cawangan = Cawangan::on('mysql7')
->where('mid',$request->mid)
->update(['version' => $request->version]);
return response()->json($cawangan);
}
}