Answer the question
In order to leave comments, you need to log in
How to display error received from laravel in ajax?
Hello! how to display the received error in the view, laravel framework, I get the response with ajax? thanks for the help
Answer the question
In order to leave comments, you need to log in
Whether it's Laravel or not, it doesn't matter.
If you need to display the error text in the template's blade div element, use the standard jQuery tools:
You can substitute this into the success or error function after receiving the response from the AJAX request
<div id="divText">MyText</div>
$('#divText').text('yourText');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question