I have to pass a javascript variable (id) in the laravel route.
var id = this.value; window.location.href = '{{route("admin",id)}}';
this method is wrong! help Me! thank you