use IlluminateHttpRequest; use IlluminateSupportFacadesAuth; function yourFunctionName (Request $request){ .... Auth::guard('web')->logout(); $request->session()->invalidate(); $request->session()->regenerateToken(); .... }