qcod / laravel-gamify

Gamify your Laravel app with Reputation Points & Achievements Badges support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undoPoint() doesn't seem to work for me

seanhudson opened this issue · comments

undoPoint(new PostCreated($post));

doesn't do anything. Am I missing something? I ended up creating another PointType class to just add negative points. However, it seems like I may be missing something. It would be nice to use the helper functions you created.

In order to undo a point you must be given point on the same model, also you need to pass the second argument with the user if you are not logged in.

undoPoint(new PostCreated($post, $post->user));

please share some more code if it doesn't help.