Here is my view(Ajax) $('#basicInfoForm').submit(function(e){ e.preventDefault(); let formData = new FormData(this); $.ajax({ type: "POST", url: "{{route('profile.basic_info')}}", dataType: 'json', data: formData, contentType: false, processData: false, beforeSend:function(){ $("#fountainG").fadeIn(1000); }, success: function(response){ $.each(response.errors, function (key, value) { $("#fountainG").fadeOut(1000); $('.alert-danger').fadeIn(2000); $('.alert-danger').append('<span>'+value+'</span>'+'<br>'); setTimeout(function() { $('.alert-danger').fadeOut(4000,…