ubah hapus
This commit is contained in:
@@ -331,6 +331,17 @@ class TebusController extends Controller
|
||||
return response()->json($wakil,200);
|
||||
}
|
||||
|
||||
public function getWakilbycode($kodcaw,$nowakil)
|
||||
{
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
$wakil = Wakil::on($cawangan['mysql'])
|
||||
->where('NOWAKIL','=',$nowakil)
|
||||
->get();
|
||||
|
||||
return response()->json($wakil,200);
|
||||
}
|
||||
|
||||
public function createWakil($kodcaw,$icno,Request $request)
|
||||
{
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
Reference in New Issue
Block a user