cosapostolo cosapostolo - 4 years ago 1241
PHP Question

Laravel back button

I am trying to create a simple back button on a page. The user can arrive to this page from two different pages so I would like to know from which page he arrived. Is that possible?

Answer Source

In Laravel, you can do something like this: <a href="{{Request::referrer()}}">Back</a> (assuming you're using blade).

In Laravel 4

{{ URL::previous() }}

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download