Ich nehme an, Sie müssen dies im RAW-Format tun:
$val1 = 20;
$result = DB::connection('ora_db')->select(
DB::raw("exec PRW_GENERA_FACTURA(:val1)"), array ('val1' => $val1)
);
return $result;
Dies mit php in den Controller:
$conn = oci_connect('apxjfdev01', 'x....' ,'x...');
if (!$conn) {
$e = oci_error(); trigger_error(htmlentities($e['message'], ENT_QUOTES),
E_USER_ERROR);
}
$sql = ' BEGIN PRW_GENERA_FACTURA( :PNRO, :PMSJ ); END; '; $sql =
oci_parse($conn,$sql); oci_bind_by_name($sql, ":PNRO", $val1, 32);
oci_bind_by_name($sql, ":PMSJ", $val2, 32);
$val1 = $id_f;
oci_execute($sql);