api for customer online update
This commit is contained in:
@@ -31,9 +31,14 @@ class MarhunController extends Controller
|
||||
return response()->json($marhun_all);
|
||||
}
|
||||
|
||||
public function getAllJemas($kodcaw){
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
$jemas = Jemas::on($cawangan['mysql'])->get();
|
||||
public function getMarhunName (Request $request){
|
||||
$jemas = Jemas::on('mysql7')->where('marhun','=',$request->marhun)->first();
|
||||
|
||||
return response()->json($jemas);
|
||||
}
|
||||
|
||||
public function getAllJemas(){
|
||||
$jemas = Jemas::on('mysql7')->get();
|
||||
|
||||
return response()->json($jemas);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user