merged production

This commit is contained in:
Hafifie PKB
2024-11-25 12:01:51 +08:00
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -2007,4 +2007,13 @@ class TebusController extends Controller
return $response;
}
public function showOneTebusbyRujukanAndCawangan($kodcaw,$norujukan){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$tebus = Tebus::on($cawangan['mysql'])->where('norujukan','=',$norujukan)->get();
return response()->json($tebus);
}
}