Reset Password
$(document).ready(function() { $("#deleteProduct").click(function(){ $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ type: "DELETE", url:"delete/po/"+$inventory->id, // data:{id:id}, success: function(result) { location.reload(); } }); } })