Answer the question
In order to leave comments, you need to log in
How to fix 500 error when submitting via Ajax?
There is a #reception_data form. The form specifies {{ csrf_field() }}. I serialize and edit this form like this:
$.ajax({
type: 'POST',
url: '/send',
data: $('#reception_data').serialize(),
success: function (data) {
console.log('seccess');
},
error: function () {
console.log('error');
}
})
500 (Internal Server Error)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question