Question : previous url laravel
Answered by : lokesh-ramchandani-in6l3jq294i2
1. The cleanest way seems to be using the url() helper: {{ url()->previous() }}
2. URL::previous() works for me in my Laravel 5.1 project. Here is Laravel 5.1 doc for previous() method, which is accessible through URL Facade.
3. You can still try alternatives, in your views you can do: {{ redirect()->getUrlGenerator()->previous() }} OR {{ redirect()->back()->getTargetUrl() }}
Source : | Last Update : Sun, 09 Aug 20
Question : laravel previous url
Answered by : perfect-plover-jjrgumpf0334
{{ URL::previous() }}
Source : https://stackoverflow.com/questions/32826887/go-back-url-in-laravel-5-1 | Last Update : Wed, 20 Jan 21
Question : laravel url previous
Answered by : viruscom1000
{{ url()->previous() }}
Source : | Last Update : Tue, 13 Oct 20
Question : laravel use url
Answered by : nachooch
use Illuminate\Support\Facades\URL;
echo URL::current();
Source : https://laravel.com/docs/7.x/urls | Last Update : Tue, 07 Jul 20