我有一个核心的PHP网站,从那里我试图将数据发布到我的laravel网站但是获得了302
我的php表单
<form name="frm_payInternational" action="https://abcd.com/international" method="post">
<input type="hidden" value="">
<div style="margin-bottom:15px;">
<input name="paymentInterEmail" id="paymentInterEmail" placeholder="Enter Email Id" style="width:400px;height:30px;border-radius:5px;" >
</div>
<div style="margin-bottom:15px;">
<input name="paymentInterAmt" id="paymentInterAmt" placeholder="Enter Amount" style="width:400px;height:30px;border-radius:5px;" >
</div>
<div style="margin-bottom:15px;">
<button type="submit" name="btn_makePaymentInter" id="btn_makePaymentInter" class="btn">Make Payment</button>
</div>
</form>
我的routes.php代码
// Payment Link
Route::post('/international', 'PurchaseController@paymentLink');
答案 0 :(得分:1)
我只需在VerifyCsrfToekn.php中间件
中添加路由protected $except = [
"route_name"
];
这不太理想,但暂时想要快速修复