laravel-gamify icon indicating copy to clipboard operation
laravel-gamify copied to clipboard

Give Points to another User

Open MikeLowrey opened this issue 2 years ago • 1 comments

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.

MikeLowrey avatar Jan 10 '23 12:01 MikeLowrey

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.

yanikkumar avatar Oct 06 '23 07:10 yanikkumar