[英]Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException laravel 8 error
I got this error on the live server (after deploying the project).. this error doesn't appeared on the local host this is the request code:我在实时服务器上收到此错误(部署项目后)..此错误未出现在本地主机上这是请求代码:
$('#SeekerCommunication_table').Tabledit({
url:"/update-Communications/action/",
dataType:'json',
columns:{
identifier : [0, 'ssn'],
editable:[
[1,'id'],
},
restoreButton:false,
deleteButton:false,
onSuccess:function(data, textStatus, jqXHR)
{
if(data.action === 'edit'){
$('#SeekerCommListModal').modal('hide');
}
}
});
this is the route<< and it defined as post:这是路线<<,它定义为post:
Route::post('/update-Communications/action/',[CommunicationController::class,'action'])->name('UpdateCommunications');
error is message: "The GET method is not supported for this route. Supported methods: POST.",…} exception: "Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException" file: "H:\root\home\irbidchambernew-001\www\epusubdomin\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php" line: 117 message: "The GET method is not supported for this route. Supported methods: POST."错误是消息:“此路由不支持 GET 方法。支持的方法:POST。”,...} 异常:“Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException”文件:“H:\root\home\irbidchambernew-001 \www\epusubdomin\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php”行:117 消息:“此路由不支持 GET 方法。支持的方法:POST。” any help please?
请问有什么帮助吗?
$('#SeekerCommunication_table').Tabledit({
url:"/update-Communications/action/",
editmethod: 'post', // Make post request like this
dataType:'json',
columns:{
identifier : [0, 'ssn'],
editable:[
[1,'id'],
},
restoreButton:false,
deleteButton:false,
onSuccess:function(data, textStatus, jqXHR)
{
if(data.action === 'edit'){
$('#SeekerCommListModal').modal('hide');
}
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.