'Laravel return after post is null with stored procedure
I have store method with return like this :
return redirect()->route('hasil.transaksi', ["data" => $data]);
with the route like this :
ROUTE::GET('hasil-transaksi', [KasirRajalController::class, 'hasilTransaksi'])->name('hasil.transaksi');
And method return like this :
public function hasilTransaksi(Request $request)
{
$data["info"] = DB::select("EXEC spx_kasirirj_GetData
@sdata = 2,
@where = '" . $request->no_transaksi . "'
");
dd($data);
}
URL after store like this :
http://127.0.0.1:8000/hasil-transaksi?data%5B0%5D%5B%5D=0000260&data%5B0%5D%5Bno_transaksi%5D=KRJ22010001
I want to catch no_transaksi=KRJ22010001 to paste in the method return above. But i don't get it, the result is null.
Please, help?
Full dd($request) : enter image description here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
