Laravel and redirect- & gt; back or something?


I need someway to redirect my app to a previous url.

The problem comes when i make a submit that goes wrong, the redirect->back previous url is someway "overwrited" and i cannot get the previous real url anymore, instead the app makes the submit again.

The only thing that i tried is the redirect back, because i can't find another way to do it :S

So i´m wondering if there is a way to achieve that, redirect the app to a previous url without considering the submit fails and all this stuff.

Thank you.

Yo can try with:

  return Redirect::to(URL::previous());