src/Http/Traits/Redirectable.php
protected function redirectBackWithSession()
    {
        if ($redirect = Session::get('redirect')) {
            Session::forget('redirect');

            return Redirect::to($redirect);
        }

        return Redirect::back();
    }
protected function redirectBackWithSession()
    {
        if ($redirect = Session::get('redirect')) {
            Session::forget('redirect');

            return Redirect::to($redirect);
        }

        return Redirect::back();
    }
protected function redirectBackWithSession ( ) { if ( $ redirect = Session :: get ( 'redirect' ) ) { Session :: forget ( 'redirect' ) ; return Redirect :: to ( $ redirect ) ; } return Redirect :: back ( ) ; }
Redirect back or to a saved URL if any.

@return \Illuminate\Http\RedirectResponse
Redirect back or to a saved URL if any .