skip to Main Content

laravel ajax not entering success function – Jquery ajax

first let me share some code: View / Form: <form id="xlsForm" enctype="multipart/form-data"> @csrf <input class="btn btn-primary" id="loadFile" type="file" name="excelfile" accept=".xls,.xlsx,.docx,.doc" required/> <input type ="hidden" name="load" value="0"> <button class="btn btn-light" name ="loadSubmit" id="loadSubmit" type="submit" value ="Analyze">Analyze</button> </form JQuery $('#xlsForm').submit(function uploadFile(event) {…

VIEW QUESTION

Laravel create/update – Jquery ajax

function () if ($request->ajax()) { $data = $request->input() $organisationGroup = new OrgrpOrganisationGroup; $organisationGroup->ORGRPID = $data['Group_Id']; $organisationGroup->ORGRPCode = $data['Group_Code']; $organisationGroup->ORGRPName = $data['Group_Name']; $organisationGroup->MSCONID = $data['Country']; $organisationGroup->MSCSTID =$data['State']; $organisationGroup->MSCCYID = $data['City']; $organisationGroup->MSCURID =$data['Currency']; $organisationGroup->save(); this is my controller i am getting form…

VIEW QUESTION
Back To Top
Search