public function autologin($token)
    {
        if ($autologin = $this->autologin->validate($token)) {
            // Active token found, login the user and redirect to the
            // intended path.
            if ($user = $this->authProvider->loginUsingId($autologin->getUserId())) {
                return redirect($autologin->getPath());
            }
        }

        // Token was invalid, redirect back to the home page.
        return redirect('/');
    }
public function autologin($token)
    {
        if ($autologin = $this->autologin->validate($token)) {
            // Active token found, login the user and redirect to the
            // intended path.
            if ($user = $this->authProvider->loginUsingId($autologin->getUserId())) {
                return redirect($autologin->getPath());
            }
        }

        // Token was invalid, redirect back to the home page.
        return redirect('/');
    }
public function autologin ( $ token ) { if ( $ autologin = $ this -> autologin -> validate ( $ token ) ) { // Active token found, login the user and redirect to the // intended path. if ( $ user = $ this -> authProvider -> loginUsingId ( $ autologin -> getUserId ( ) ) ) { return redirect ( $ autologin -> getPath ( ) ) ; } } // Token was invalid, redirect back to the home page. return redirect ( '/' ) ; }
Process the autologin token and perform the redirect.

@param  string  $token
@return \Illuminate\Http\RedirecetResponse
Process the autologin token and perform the redirect .