Hello, I have this javascript function that gets a parameter:
function teste(id){
document.getElementById("campo1").innerHTML = id;
document.getElementById("campo2").innerHTML = {{app\User::find("id")->titulo}}
}
How do I get the User :: find () function to get the 'id' variable that is javascript, is there any way to do this?