Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] #65

Open
chrisvidal opened this issue Feb 7, 2025 · 0 comments
Open

[Question] #65

chrisvidal opened this issue Feb 7, 2025 · 0 comments

Comments

@chrisvidal
Copy link

Hi,

thanks for the package, really useful.

I'm trying to understand the impementation of the givePoint method in the trait hasReputation

Where is this method increment implemented or where do I need to implement it ?

thank you in advance

/**
     * Give point to a user
     *
     * @param int $point
     * @return HasReputations
     */
    public function addPoint($point = 1)
    {
        $this->increment($this->getReputationField(), $point);

        ReputationChanged::dispatch($this, $point, true);

        return $this;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant