public function getLogout(Request $request)
    {
        $request->session()->flush();

        Auth::logout();

        return redirect(property_exists($this, 'redirectAfterLogout') ? $this->redirectAfterLogout : '/');
    }
public function getLogout(Request $request)
    {
        $request->session()->flush();

        Auth::logout();

        return redirect(property_exists($this, 'redirectAfterLogout') ? $this->redirectAfterLogout : '/');
    }
public function getLogout ( Request $ request ) { $ request -> session ( ) -> flush ( ) ; Auth :: logout ( ) ; return redirect ( property_exists ( $ this , 'redirectAfterLogout' ) ? $ this -> redirectAfterLogout : '/' ) ; }
Log the user out of the application.

@param  \Illuminate\Http\Request  $request
@return \Illuminate\Http\Response
Log the user out of the application .