
这个是因为laravel自带CSRF验证的问题
解决方法
在headers加入x-csrf-token
$.ajax({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
type:"post",
url:'ajax/check',
dataType:"json",
data:{'id': $(this).data('id')},
success:function(data)
{
alert('审核通过');
window.location.reload();
}
});