0
votes

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:

  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." any help please?

1
add method to your request as post because you defined post route but you are making get requestMet Br
It appears there's a PR pending which will add the ability to set the HTTP method on edit + delete but has not been merged yet - github.com/markcell/jquery-tabledit/pull/64/fileshppycoder

1 Answers

0
votes
$('#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');
                    }
                }
            });