I have laravel route defined as below
Route::get('dos',array('as'=>'saveOrder','uses'=>'HomeController@SaveOrder'));
And my ajax request as below
var params = $("#tab_logic :input[name='id[]']").serialize();
//alert(params);
$.ajax({
url: "dos",
method: 'GET',
data: params,
//dataType:"json",
success: function( data )
{
// do nothing
alert(data);
}
});
I get an 500 server error when executed. The input field ID[] is an array and I want this array to be sent to laravel route so that I can handle it in controller action with Input::get('id').