            $request->session()->flush();
            return redirect()->route('auth.login');
        } 
        else {
            Auth::logout();
            $request->session()->flush();
            return redirect()->route('tpshop.index.index');
        }
    	
    }