src/Controllers/Auth/SessionController.php
public function getLogout(Request $request)
    {
        // Terminate the user's current session.  Passing true as the
        // second parameter kills all of the user's active sessions.
        $result = $this->authManager->logout(null, null);

        // Return the appropriate response
        return $result->dispatch(route('dashboard'));
    }
public function getLogout(Request $request)
    {
        // Terminate the user's current session.  Passing true as the
        // second parameter kills all of the user's active sessions.
        $result = $this->authManager->logout(null, null);

        // Return the appropriate response
        return $result->dispatch(route('dashboard'));
    }
public function getLogout ( Request $ request ) { // Terminate the user's current session.  Passing true as the // second parameter kills all of the user's active sessions. $ result = $ this -> authManager -> logout ( null , null ) ; // Return the appropriate response return $ result -> dispatch ( route ( 'dashboard' ) ) ; }
Handle a Logout Request
@return Response|Redirect
Handle a Logout Request