story ks
story ks

Reputation: 850

Laravel 5.4 Route back in blade

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

Answers (1)

FULL STACK DEV
FULL STACK DEV

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

Related Questions