Laravel Web PHP -Anfrage zur Umleitung zu einer anderen Seite
Route::get('/{any}', function () {
return redirect('https://questa.uz');
})->where('any', '.*');
Shadow
Route::get('/{any}', function () {
return redirect('https://questa.uz');
})->where('any', '.*');
window.location.href = "/thanks?status="+result.status+"&id="+result.id;
//or ajax
$.ajax({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
url: "{{url('/thanks')}}",
type: "POST",
data: {"id" : result.id,"status":result.status},
success: function(data){
console.log("ajax called succesfully");
}
});