There are many ways to send _token on AJAX call
<form> tag using var formData = new FormData($("#cart-add")[0]);$("form").serialize(); or $("form").serializeArray();_token manually on data of Ajax. using $('meta[name="csrf-token"]').attr('content') or $('input[name="_token"]').val().$.ajax({
url: $("#category-add").attr("action"),
type: "POST",
data: formData,
processData: false,
contentType: false,
dataType: "json",
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});