Reputation: 850
I need button back to page previous in blade I try
{{ route(back()) }} Not working
{{back()}} Not working
{{ redirect(back()) }} Not working
Upvotes: 4
Views: 9319
Reputation: 15941
use the previous method
{{ URL::previous() }}
Or you can also use helpers.
// Get the current URL without the query string...
echo url()->current();
// Get the current URL including the query string...
echo url()->full();
// Get the full URL for the previous request...
echo url()->previous();
Upvotes: 16