I can get array values on scrpit array .
Script is
$(document).on('click', '#bulk_delete', function()
{
var id = [];
if(confirm("Are you sure you want to Delete this data?"))
{
$('.student_checkbox:checked').each(function(){
id.push($(this).val());
});
if(id.length > 0)
{
$.ajax({
url:"del",
method:"get",
data:{id:id},
success:function(data)
{
alert(data);
$('#dTable').DataTable().ajax.reload();
}
});
}
else
{
alert("Please select atleast one checkbox");
}
}
});
How to get these array values to laravel controller and insert into the database
Route is
Route::get('/del', 'AjaxdataController@ins');
and AjaxdataController.php is
public function ins(Request $request )
{
}

idwill be passed in the URL to which your route is not capturing.