In this tutorial we’re going to learn how to remove fake path from url in laravel using javascript.
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/11/image-55-1024x424.png)
var get_token_id = $("#vi_token_id").val();
console.log('amit get token id'+ get_token_id);
sentences = get_token_id.slice(12,27);
console.log('message me kya aa rh hai'+sentences);
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/11/image-56.png)
Now fakepath removing successfully form url 👍