I have a page with a "back" link. Is there a way to call the back()
method of Laravel within href
of the link?
This code does not work, but I want something like
href="{{URL::to(back())}}"
I have a page with a "back" link. Is there a way to call the back()
method of Laravel within href
of the link?
This code does not work, but I want something like
href="{{URL::to(back())}}"
try the following:
href="{{URL::previous()}}"
You can also do with javascript:
<a href="#" onclick="window.history.go(-1);">...</a>