mardi 4 décembre 2018

Laravel 5.4 Handler.php redirect from Ajax Call

Im trying to redirect users with "TokenMismatchException" to login page. All my website is based on JQuery, the user never change the main page, only the content, so the problem is that the response from Handler.php about the error will be passed to the jquery functions, but there's tons of functions, i dont want to make an if in all them.

I tried creating a blade with this content:

<script>
   window.location.replace('https://brasilbitcoin.com.br/entrar');
</script>

And return this blade if error, but doesn't work either...

Any suggestions?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Ufttrg
via IFTTT

Aucun commentaire:

Enregistrer un commentaire