在Laravel 4之前重定向到url最后一个动作

I have a route which runs a scritpt and I want to finish running when the redirect url where it came from such action, as this route is associated controller pordra even be accessed for execution from different sites of application

eg

index -> running Routing-> terminates and redirects to index.

post -> running Routing-> terminates and redirects to post.

...

bone according to redirecting from where the action

my question is whether there is some method in laravel 4 to capture the url or path where the application is to run the script?

Do you mean Redirect::back()?

Are you just after the previous URL?

If so, you can use URL::previous().