In this tutorial I’m going to remove fakepath in URL using ajax jQuery in laravel.
Just put below code.
//amit start here
var get_token_id = $("#vi_token_id").val();
console.log('amit get token id'+ get_token_id);
//amit start here
sentences = get_token_id.slice(12,27);
console.log('message me kya aa rh hai'+sentences);
//amit end here
Now successfully remove fakepath from url.