Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.4 Route back in blade

Tags:

laravel

I need button back to page previous in blade I try

{{ route(back()) }} Not working

{{back()}} Not working

{{ redirect(back()) }} Not working

like image 952
story ks Avatar asked Sep 15 '25 16:09

story ks


1 Answers

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();
like image 121
Romantic Dev Avatar answered Sep 17 '25 07:09

Romantic Dev