app/Http/Controllers/Auth/LoginController.php
/**
     * Log the user out of the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Log the user out of the application.
Log the user out of the application .
public function logout(Request $request)
    {
        $this->guard()->logout();
        $request->session()->invalidate();
        return $this->loggedOut($request) ?: redirect('/home');
    }
public function logout ( Request $ request ) { $ this -> guard ( ) -> logout ( ) ; $ request -> session ( ) -> invalidate ( ) ; return $ this -> loggedOut ( $ request ) ? : redirect ( '/home' ) ; }
Log the user out of the application.
Log the user out of the application .