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

Give Points to another User #54

Open
MikeLowrey opened this issue Jan 10, 2023 · 1 comment
Open

Give Points to another User #54

MikeLowrey opened this issue Jan 10, 2023 · 1 comment

Comments

@MikeLowrey
Copy link

Hello! It is possible to bind the reputation to another user? I mean a user A voted a Post from user B. And i will give User B the reputation points.

@yanikkumar
Copy link

You can give points to another user by just using the method addPoint() it will not maintain the history of the points but will get the job done. So you can call this in you method. Eg: on liking a post give points to the user who created the post.

$user->addPoint($point = 1);

where $user can be the user who you would like to give the point.

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

2 participants