skip to Main Content

How do I stop duplicate content from appearing in my view when using laravel and ajax?

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,…

VIEW QUESTION

why laravel say table dosent exsit

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'app.infos' doesn't exist. home controller <?php namespace AppHttpControllers; // use IlluminateHttpRequest; use AppHttpControllersController; use AppModelsinfo; class homeController extends Controller { public function index(){ $data=info::all(); return view('home',['data'=>$data]); } } web php Route::get('home',…

VIEW QUESTION
Back To Top
Search