Show your full AJAX/HTML form code.
Issue with ajax post when changing the query string
Hi,
I am facing one issue like in my application i am using query string pattern like for instance user section where i am doing edit user
URL is domain.com/edituser?uid=21
Route::get('edituser','UserController@getuser')->middleware('validuser'); Route::post('processuseredits','UserController@doUpdate')->middleware('ajax','validuser');
This works perfect with ajax also.
But when i am changing this with
URL is domain.com/edituser/21
Route::get('edituser/{uid}','UserController@getuser')->middleware('validuser'); Route::post('processuseredits','UserController@doUpdate')->middleware('ajax','validuser');
it displays the edit user data but when i am submitting the form it giving me post method not supported use Get method.
this error looks strange very strange.
Please or to participate in this conversation.