xxxxxxxxxx
$.ajax({
url: URL,
type: 'DELETE',
dataType: 'json',
success: function(data) {
// successfull request
}
});
laravel delete request jquery with csrf token
xxxxxxxxxx
$.ajax({
url: URL,
type: 'DELETE',
dataType: 'json',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(data) {
// successfull request
}
});